Jump to content

Recommended Posts

Posted

HTML Text Formatting

This text is bold

[i]This text is italic[/i]

[b]This is computer bold[/b]

This is [u]underline[/u] and [s]strikethrought[/s]

 

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).

Note:Often <strong> renders as <b>, and <em> renders as <i>.

 

However, there is a difference in the meaning of these tags:

 

<b> or <i> defines bold or italic text only.

 

<strong> or <em> means that you want the text to be rendered in a way that the user understands as "important". Today, all major browsers 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!

 

HTML Text Formatting Tags

Tag 	Description
<b> 	Defines bold text
<em> 	Defines emphasized text 
<i> 	Defines a part of text in an alternate 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

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 quoted from another source
<q> 	Defines an inline (short) quotation
<cite> 	Defines the title of a work
<dfn> 	Defines a definition term

 

Credits Olympus,Internet,ME.

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..