Basic text markup
Displaying Header
There are header Tags
which help to display the text as some header.The header tag is denoted b h1,h2
and so on upto h6.Following XHTML
program along with its output is itself self explanatory
Write
an HTML script to display text using various header tags.
Solution:
XHTML document[headerDemo.html]
<head>
</head>
<body>
<h1>This is a first header
</h1>
<h2>This is a second header
</h2>
<h3>This is a third header </h3>
<h4>This is a fourth header </h4>
<h5>This is a fifth header </h5>
<h6>This is a sixth header </h6>
</body>
</html>
Try this program and get output
No comments:
Post a Comment