HTML Text Formatting
<html>
<body>
<p><b>This text is bold</b></p>
<p><strong>This text is strong</strong></p>
<p><big>This text is big</big></p>
<p><i>This text is italic</i></p>
<p>This text is emphasized</p>
<p><code>This is computer output</code></p>
<p>This is<sub> subscript</sub> and <sup>superscript</sup></p>
</body>
</html>
Result
This text is bold
This text is strong
This text is big
This text is italic
This text is emphasized
This is subscript and superscript
This text is strong
This text is big
This text is italic
This text is emphasized
This is computer output
This is subscript and superscript
HTML Formatting Tags
HTML uses tags like <b> and <i> for formatting output, like bold or italic text.
These HTML tags are called formatting tags (look at the bottom of this page for a complete reference).
Often <strong> renders as <b>, and <em> renders as <i>.
However, there is a difference in the meaning of these tags:
<em> <b> or <i> defines bold or italic text only.</em>
or means that you want the text to be rendered in a way
that the user understands as "important". Today, all major browser
render strong as bold and em as italics. However, if a browser one
day wants to make a text highlighted with the strong feature, it might be
cursive for example and not bold!
However, there is a difference in the meaning of these tags:
<em> <b> or <i> defines bold or italic text only.</em>
or means that you want the text to be rendered in a way
that the user understands as "important". Today, all major browser
render strong as bold and em as italics. However, if a browser one
day wants to make a text highlighted with the strong feature, it might be
cursive for example and not bold!
0 comments:
Posting Komentar