Saturday, July 25, 2015

6. HTML Formatting

 HTML Tutorial

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




</span><span class="pln">Bold Text Example</span><span class="tag">
The following word uses a bold typeface. This will produce following result:
The following word uses a bold typeface.

Italic Text

Anything that appears within ... element is displayed in italicized as shown below:

Example




</span><span class="pln">Italic Text Example</span><span class="tag">
The following word uses a italicized typeface. This will produce following result:
The following word uses a italicized typeface.

Underlined Text

Anything that appears within ... element, is displayed with underline as shown below:

Example




</span><span class="pln">Underlined Text Example</span><span class="tag">
The following word uses a underlined typeface. This will produce following result:
The following word uses a underlined typeface.

Strike Text

Anything that appears within ... element is displayed with strikethrough, which is a thin line through the text as shown below:

Example




</span><span class="pln">Strike Text Example</span><span class="tag">
The following word uses a strikethrough typeface. This will produce following result:
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




</span><span class="pln">Monospaced Font Example</span><span class="tag">
The following word uses a monospaced typeface. This will produce following result:
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




</span><span class="pln">Superscript Text Example</span><span class="tag">
The following word uses a superscript typeface. This will produce following result:
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




</span><span class="pln">Subscript Text Example</span><span class="tag">
The following word uses a subscript typeface. This will produce following result:
The following word uses a subscript typeface.

Inserted Text

Anything that appears within ... element is displayed as inserted text.

Example




</span><span class="pln">Inserted Text Example</span><span class="tag">
I want to drink cola wine This will produce following result:
I want to drink
colawine

Deleted Text

Anything that appears within ... element, is displayed as deleted text.

Example




</span><span class="pln">Deleted Text Example</span><span class="tag">
I want to drink cola wine This will produce following result:
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




</span><span class="pln">Larger Text Example</span><span class="tag">
The following word uses a big typeface. This will produce following result:
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




</span><span class="pln">Smaller Text Example</span><span class="tag">
The following word uses a small typeface. This will produce following result:
The following word uses a small typeface.

Grouping Content

The
and elements allow you to group together several elements to create sections or subsections of a page.
For 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




</span><span class="pln">Div Tag Example</span><span class="tag">

id="content" align="left" bgcolor="white">
Content Articles
Actual content goes here..... This will produce following result:
Content Articles
Actual content goes here.....
The element, on the other hand, can be used to group inline elements only. So, if you have a part of a sentence or paragraph which you want to group together, you could use the element as follows

Example




</span><span class="pln">Span Tag Example</span><span class="tag">
This is the example of style="color:green">span tag and the style="color:red">div tag alongwith CSS This will produce following result:
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.

0 comments:

Post a Comment

 
Designed by Kakada Akkarak Surakkiat
Technology: របៀប​ដំឡើង Windows 10 នៅ​លើ​កុំព្យូទ័រ!: អ្នកត្រូវដឹងឲ្យ ច្បាស់ពី Windows ដែលអ្នកយក ទៅដំឡើង ដោយសារមាន Windows ខ្លះមានការ crack រួច ឬខ្លះត្រូវការ Product key ភ្លាម និងខ្លះទៀត អាចត្រូវ skip កន្លែងវាយលេខ Product key បាន តែត្រូវ Activate តាមក្រោយ ទើបប្រើប្រាស់បាន។ Technology: ដំណោះ​ស្រាយ Error 80240020 នៅ​ពេល​តម្លើង Windows 10 Free តាម​រយៈ​ការ Upgrade : មាន បញ្ហាមួយចំនួន ទាក់ទងនឹង ការតម្លើង Windows 10 នេះផងដែរ ប៉ុន្តែបញ្ហានោះ កើតឡើង ទៅលើតែកុំព្យូទ័រ មួយចំនួនប៉ុណ្ណោះ គឺខណៈពេល ដែលអ្នក ប្រើប្រាស់ បានទាញយក Windows 10 ចប់ហើយ វាបាន បង្ហាញនូវ ផ្ទាំង error មួយ ដែលមានលេខ សំគាល់ error នោះគឺ 80240020។ ដូចនេះដើម្បី ដោះស្រាយ នូវបញ្ហា មួយនេះ សូមលោកអ្នក តាមដានអាន ជាមួយយើងខ្ញុំ ទាំងអស់គ្នា !!