HTML defines a lot of elements for formatting output, like bold or italic text.
Below are a lot of examples that you can try out yourself:
Examples
Text formattingThis example demonstrates how you can format text in an HTML document.
Preformatted textThis example demonstrates how you can control the line breaks and spaces with the pre tag.
"Computer output" tagsThis example demonstrates how different "computer output" tags will be displayed.
AddressThis example demonstrates how to write an address in an HTML document.
Abbreviations and acronymsThis example demonstrates how to handle an abbreviation or an acronym.
Text directionThis example demonstrates how to change the text direction.
QuotationsThis example demonstrates how to handle long and short quotations.
Deleted and inserted textThis example demonstrates how to mark a text that is deleted or inserted to a document.
How to View HTML Source
Have you ever seen a Web page and wondered "Hey! How did they do that?"
To find out, click the VIEW option in your browser's toolbar and select SOURCE or PAGE SOURCE. This will open a window that shows you the HTML code of the page.
Text Formatting Tags
Tag
Description
Defines bold text
Defines big text
Defines emphasized text
Defines italic text
Defines small text
Defines strong text
Defines subscripted text
Defines superscripted text
Defines inserted text
Defines deleted text
Deprecated. Use instead
Deprecated. Use instead
Deprecated. Use styles instead
"Computer Output" Tags
Tag
Description
Defines computer code text
Defines keyboard text
Defines sample computer code
Defines teletype text
Defines a variable
Defines preformatted text
Deprecated. Useinstead
Deprecated. Useinstead
Deprecated. Useinstead
Citations, Quotations, and Definition Tags
Tag
Description
Defines an abbreviation
Defines an acronym
Defines an address element
Defines the text direction
Defines a long quotation
Defines a short quotation
Defines a citation
Defines a definition term
0 comments:
Post a Comment