Hi friends, Assalam-o-alaikum as we learnt earlier the link tag and image tag now come to the text formatting in html. It is necessary to know because text formatting is main part without you can not manage your contact. Today I am going explain how make text italic bold underlined different forms of tag. These tag make your content readable and beautiful you can make it more beautiful to add css to webpage. This will be discussed in future how to make page more beautiful with css. Let’s come to the topic.
Also read this: HTML image tag and link tag.
TEXT FORMATING.
HEADING.
As you know in every page first and important tag is heading tag. You can use various sizes of heading tag. Heading tag has six levels h1 to h6. The biggest heading h1 and smallest is h6.
For example
<h1>heading one</h1>
<h2>heading two</h2>
<h3>heading three</h3>
<h4>heading 4</h4>
<h5>heading five</h5>
<h6>heading six</h6>
PARAGRAPH.
The second most tag in the page is paragraph with this tag you show different paragraph. It leaves the blank line before and after the paragraph.
<p>this is paragraph tag<p>
Line break.
The <br /> tag we used to break line this is the example of an empty tag. This tag use to break line not to separate paragraph.
<hr>
<hr >tag used to separate the content in html page. It has no end tag in html but in xhtml its closing tag look like this <hr />.it is also an example of empty tag.BOLD TEXT.
The text between the <b></b> the text displayed as bold.
For example;
<p>this the <b>bold</b> tag in paragraph</p>
ITALIC TEXT.
The text between the <i>italic</i> the text displayed as italic.
For example;
<p> this is the</i> italic</i> tag in paragraph</p>
UNDERLINED TEXT.
The text between the in tags<u>underlined</u>this text will displayed as underlined.
<p>this is the paragraph tag with explanation of <u>underlined</u> tag.
STRIKE-OUT
It puts the line through the text.
For example
<strike>This tag is strike</strike>
PERFORMATTED TEXT
The text between the tag it will be display as you write it in the text editor. You can add multiple spaces which browser neglect.
For example
<pre>this is the preformatted text</pre>
SUPERSCRIPT TEXT.
The <sup> tag defines the superscript text. The text appears half character above the baseline.
<p> this is the paragraph contains on <sup>script text</sup></p>
SUBSCRIPT TEXT.
The <sub> tag defines the subscript text. The text appears half character below the baseline.
<p>this is the paragraph contain on <sub> subscript text</sub></p>
SMALL TEXT
Instead of using font size we use small text tag. This tag make small text than the normal text.
<p>this is the paragraph tag with the <small>small tag</small><p>
LARGE TEXT.
For large text we simply use <big></big>tag.
<p> this is the paragraph tag with <big>large text</big></p>
FINAL WORDS.
In this tutorial you have learnt about the html text formatting. Now you have concept of text formatting. Please visit us regularly and don’t forget to share our post with your friends.
0 comments:
Post a Comment