01 HTML -Tags HTML record
01 Create an HTML document with the following formatting options:
(a) Bold, (b) Italics, (c) Underline, (d) Headings (Using H1 to H6 heading styles), (e) Font (Type, Size and Color), (f) Background (Colored background/Image in background), (g) Paragraph, (h) Line Break, (i) Horizontal Rule, (j) Pre tag
Program:- 01
Save:- html_tags.html
<html>
<head>
<title>first program</title>
</head>
<body bgcolor="lightyellow">
<b>This is bold text</b><br>
<i>This is italic text</i><br>
<u>This is underlined text</u><br>
<h1>This is heading 1</h1>
<h2>This is heading 2</h2>
<h3>This is heading 3</h3>
<h4>This is heading 4</h4>
<h5>This is heading 5</h5>
<h6>This is heading 6</h6>
<font color="blue" size=4 face="algerian">IBM Degree College</font>
<pre>
This is a formatted text by using
the HTML pre tag. It maintains both space
and line break.
</pre>
<p>
This paragraph has multiple lines.
But HTML reduces them to a single line,
omitting the carriage return we have used.
</p>
<hr> This text contains horizontal ruler <hr>
</body>
</html>
Output:-
Comments
Post a Comment