16.10.17

Setting Font Style

Setting Font Style




        We can set the text in boldface or in italics.Similarly a strike through text can be displayed using various tags.Following XHTML document illustrates the same.


Write a HTML script to display text bold,italics and striked through form

Sol:

XHTML Document[fontstyle.html]
<head>
<title>Font Style Demo</title>
</head>
<body>
<b>This is a bold text</b><br/>
<i>This is in italics</i><br/>
<strong>This is strongly emphasized text</strong><br/>
<strike>This is striked text</strike>
<center>This will appear at the center</center><br/>
</body>
</html>

try this program and get output.

💥 Advance Happy diwali........ 💥

No comments:

Post a Comment

Featured Post