HTML TEXT FORMATTING
<h?> </h?>
h1
for the largest and most important heading, down to h6
for the smallest heading.<b> </b>
<i> </i>
<u> </u>
<strike> </strike>
<s> </s>
instead.<pre> </pre>
pre
tags, including spaces, carriage returns and punctuation, will appear in the browser as it would in a text editor (normally browsers ignore multiple spaces)<code> </code>
<tt> </tt>
<blockquote> </blockquote>
<small> </small>
small
tag to render text slightly smaller than the text around it. Useful for displaying the 'fine-print'.<font color="#??????"> </font>
<font size="?"> </font>
<font size="+/-?"> </font>
<font size="-1">
Some Text</font>
<font face="?"> </font>
<center> </center>
<em> </em>
<strong> </strong>
In the previous chapter, you learned about the HTML style attribute.
HTML also defines special elements for defining text with a special meaning.
HTML uses elements like <b> and <i> for formatting output, like bold or italic text.
Formatting elements were designed to display special types of text:
- <b> - Bold text
- <strong> - Important text
- <i> - Italic text
- <em> - Emphasized text
- <mark> - Marked text
- <small> - Small text
- <del> - Deleted text
- <ins> - Inserted text
- <sub> - Subscript text
- <sup> - Superscript text
Comments
Post a Comment