Social Icons

Thursday, January 31, 2013

HTML Formatting

HTML Text Formatting

Example : 

<html>
<body>

<p><b>This text is bold</b></p>
<p><strong>This text is strong</strong></p>
<p><i>This text is italic</i></p>
<p><em>This text is emphasized</em></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 italic
This text is emphasized
This is computer output
This is subscript and superscript

HTML Text Formatting Tags
Tag
Description
<b>
Defines bold text
<em>
Defines emphasized text
<i>
Defines a part of text in an alternative voice or mood
<small>
Defines smaller text
<strong>
Defines important text
<sub>
Defines subscripted text
<sup>
Defines superscripted text
<ins>
Defines inserted text
<del>
Defines deleted text


HTML ‘Computer Output’ tags
Tag
Description
<code>
Defines computer code text
<kbd>
Defines keyboard text
<samp>
Defines sample computer code
<var>
Defines a variable
<pre>
defines preformatted text
<sub>
Defines subscripted text


HTML Citations, Quotations and Definition tags
Tag
Description
<abbr>
Defines an abbreviation or acronym
<address>
Defines contact information for the author/owner of a document
<bdo>
Defines the text direction
<blockquote>
Defines a section that is quotation from another source
<q>
Defines an inline (short) quotation
<cite>
Defines the title of a work
<dfn>
Defines a definition term



No comments:

Post a Comment