HTML and CSS  Home HTML and CSS Tutorials Text in HTML
rss

Text in HTML

Author: Een More by this author


Text in HTMLWe have been able to create an empty html page with elementary HTML codes, so far. What most elementary from formatting text is Heading tag. There are six levels for heading with one as the biggest heading and 6 is smaller heading. With codes of heading text will be the in form of follows:

< H1>Heading 1< /H1>

< H2>Heading 2</ H2>

< H3>Heading 3< /H3>

< H4>Heading 4</ H4>

< H5>Heading 5</ H5>

< H6>Heading 6< /H6>

Headings are the important places for search engines since in these sections, they have what is called keyword prominence, especially Heading 1, hence you should enrich your web pages with keywords or phrases keyword here.

Paragraph

Paragraph tag is utilized to start a new paragraph in any HTML document. Paragraph codes are as follows:

< P Align="Center"> Paragraph 1 with Center alignment
< P Align="Justify"> Paragraph 2 with Justify alignment
< P> Paragraph 3 with Left alignment
< P Align="Right"> Paragraph 4 with Right alignment

While the out puts are:

Paragraph 1 with Center alignment

Paragraph 2 with Justify alignment

Paragraph 3 with Left alignment

Paragraph 4 with Right alignment

Please note that many search engines do not recognize meta description tag. The kinds of search engines usually takes trivial lines of web page in the place of  meta description tag. Hence, it is recommended for you to give brief descriptions of keywords or phrases keyword at first section of your web pages by elaborating keywords or phrases keyword that become interesting sentences so that make no impression on dissonant and  make no impression on repeating.

Line Break

Line Break <Br> tag is used to terminate a line from document content without starting a new paragraph. This Tag will position line of following text precisely below previous line, without interval  line like < p> tag.

This is the example 1 of using line break in your HTML document.
This is the example 2 of using line break in your HTML document.
This is the example 3 of using line break in your HTML document.

While the codes are:
This is the example 1 of using line break in your HTML document.<br>
This is the example 2 of using line break in your HTML document.<br>
This is the example 3 of using line break in your HTML document. 

Bold Text

Example: Bold Texts
While The codes are: <B>Bold Texts</B>

Italic Text

Example: Italic Texts
While The codes are: <I>Italic Texts</I>

Underlined Text

Example: Underlined Texts
While The codes are: <U>Underlined Texts</U>

Superscript Text

Example: Underlined Texts
While The codes are: <Sup>Underlined Texts</Sup>

Subscript Text

Example: Underlined Texts
While The codes are: <Sub>Underlined Texts</Sub>

Strike Text

Example: Strike texts
While The codes are: <Strike>Strike texts</Strike>



Rate this Material: Bad 1 2 3 4 5 Excellent
print this page tell a friend subscribe to newsletter subscribe to rss

Add comments to "Text in HTML"