All
the text formatting tags are container tags again it is divided in to two types
1.
Blocked tags: If any tag has blocked entire link those tags are called blocked
tags it supports changing its alignment [*left, right, center]
Example:
table, Div, list, ext...
2.
Inline Tags: These tags will block the space depends on the content
Example:
I, B, image, anchor, ext...
B:
Apply bold to content
Strong:
also Apply bold to content
U:
Apply underline in to content
I:
Apply Italic style
Em:
also apply Italic style
Strike:
Apply strike to content
Del:
also apply strike to content
Sup:
print the content on power
Sub:
print the content on base
Center
Tag: it is a blocked tag display content on center of the web page
P:
Arrange the group of data in paragraph format
Pre:
Pre formatted or presentation it is a different tag in html it will present the
content as it is it can execute any font and spaces
Example
for Text Formatting Tags
<html>
<head>
<title>
First Page</title>
</head>
<body>
<b>Welcome
to Home Page</b>
<strong>Welcome
to Home Page</strong>
<i>Welcome
to Home Page</i>
<em>Welcome
to Home Page</em>
<u>Welcome
to Home Page</u>
<strike>Rs
700</strike>
<del>Rs
700</del>(A+B)sup>2</sup>=A<sup>2</sup>+B<sup>2</sup>+2AB
LOG<sub>10</sub>10
<center>Center
Tag</center>
<p>Paragraph
tag</p>
<pre>
2 3 4
5 5 5
6 5 5
</pre>
<font color='red' size='30px' face='arial'>Font
Tag</font>
<lamp color='red'>Font Tag</lamp>
</body>
</html>
No comments:
Post a Comment