You can create a heading by changing the font property for a word or some words from a paragraph. Look at the program:
Program
<html>
<head>
<title>Astronomy</title>
</head>
<body>
Introduction<br>
Astronomy, as a science, combines the best of new and old tradions.
</body>
</html>
Result
Here, the heading of the text (Astronomy, as a science, combines the best of new and old tradions) is very simple on the webpage. You can change the font to any size or any style by changing the font property.
Program
<html>
<head>
<title>Astronomy</title>
</head>
<body>
<p align="center"><font face="Impact" size=+2><b><i><u>Introduction</u></i></b></font></p>
Astronomy, as a science, combines the best of new and old tradions.
</body>
</html>
Result
Here,
1. The tag <p align="center">…</p> used to keep the heading (Introduction) on the centre of the web page.
2. The tag <font face="Impact" size=+2>…</font> used to give the heading font Ipmact and size 18.
3. The <b>…</b> is used to create the heading on bold style.
4. The <i>…</i> is used to create the heading on italic style.
5. The <u>…</u> is used to give the heading Underline.


No comments:
Post a Comment