Page 53 - modular_v2.0_HTML&_CSS_Fb
P. 53
Using <HR/> tag
THE <B> TAG
The <B> tag is used to give bold effect to your text. You need to tell the web browser when to
start using the bold effect and where to stop using the bold effect. It is a container tag and used
in pair as <B> and </B>.
The following HTML code demonstrates the use of the <B> tag:
<!DOCTYPE HTML>
<HTML>
<HEAD>
<TITLE>HTML B tag</TITLE>
</HEAD>
<BODY>
<P>This is normal text - <B>and this is bold text</B>.</P>
</BODY>
</HTML>
Using <B> Tag
THE <I> TAG
The <I> tag is used to give italic effect to your text. You need to tell the web browser when to
start using the italic effect and where to stop using the italic effect. It is also a container tag and
used in pair as <I> and </I>.
The following HTML code demonstrates the use of the <I> tag:
<!DOCTYPE HTML>
<HTML>
<HEAD>
51
Formatting a Web Page

