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]
<html xmlns=”http://www.learnhtmeasyl.blogspot.com/2017/xhtml”>
<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.
No comments:
Post a Comment