If you use a word processor, you must be familiar with the ability to make text bold, italicized, or underlined; these are just three of the ten options available to indicate how text can appear in HTML and XHTML.
Bold Text
Anything that appears within ... element, is displayed in bold as shown below:Example
The following word uses a bold typeface. This will produce following result:Bold Text Example
The following word uses a bold typeface.
Italic Text
Anything that appears within ... element is displayed in italicized as shown below:Example
The following word uses a italicized typeface. This will produce following result:Italic Text Example
The following word uses a italicized typeface.
Underlined Text
Anything that appears within ... element, is displayed with underline as shown below:Example
The following word uses a underlined typeface. This will produce following result:Underlined Text Example
The following word uses a underlined typeface.
Strike Text
Anything that appears withinExample
The following word uses aStrike Text Example
The following word uses a strikethrough typeface.
Monospaced Font
The content of a ... element is written in monospaced font. Most of the fonts are known as variable-width fonts because different letters are of different widths (for example, the letter 'm' is wider than the letter 'i'). In a monospaced font, however, each letter has the same width.Example
The following word uses a monospaced typeface. This will produce following result:Monospaced Font Example
The following word uses a monospaced typeface.
Superscript Text
The content of a ... element is written in superscript; the font size used is the same size as the characters surrounding it but is displayed half a character's height above the other characters.Example
The following word uses a superscript typeface. This will produce following result:Superscript Text Example
The following word uses a superscript typeface.
Subscript Text
The content of a ... element is written in subscript; the font size used is the same as the characters surrounding it, but is displayed half a character's height beneath the other characters.Example
The following word uses a subscript typeface. This will produce following result:Subscript Text Example
The following word uses a subscript typeface.
Inserted Text
Anything that appears within ... element is displayed as inserted text.Example
I want to drinkInserted Text Example
I want to drink
colawine
Deleted Text
Anything that appears withinExample
I want to drinkDeleted Text Example
I want to drink
colawine
Larger Text
The content of the ... element is displayed one font size larger than the rest of the text surrounding it as shown below:Example
The following word uses a big typeface. This will produce following result:Larger Text Example
The following word uses a big typeface.
Smaller Text
The content of the ... element is displayed one font size smaller than the rest of the text surrounding it as shown below:Example
The following word uses a small typeface. This will produce following result:Smaller Text Example
The following word uses a small typeface.
Grouping Content
TheFor example, you might want to put all of the footnotes on a page within a
element to indicate that all of the elements within
that
element relate to the footnotes. You might then attach
a style to this
element so that they appear using a special
set of style rules.
Example
Div Tag Example
id="menu" align="middle" >
href="/index.htm">HOME |
href="/about/contact_us.htm">CONTACT |
href="/about/index.htm">ABOUT
id="content" align="left" bgcolor="white">
Actual content goes here.....
This will produce following result:Content Articles
Content Articles
Actual content goes here.....Example
This is the example of style="color:green">span tag and the style="color:red">div tag alongwith CSS This will produce following result:Span Tag Example
This is the example of span tag and the div tag alongwith CSS
These tags are commonly used with CSS to allow you to attach a style to a section of a page.
Post a Comment
0 comments
Dear readers, after reading the Content please ask for advice and to provide constructive feedback Please Write Relevant Comment with Polite Language.Your comments inspired me to continue blogging. Your opinion much more valuable to me. Thank you.