PROGRAM 1:
<!DOCTYPE html>
<html lang=”en”>
<head>
<title>Heading Tags Demo</title>
</head>
<body>
<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>
</body>
</html>
Program 2:
<!DOCTYPE html>
<html>
<head>
<title>Paragraph Tag Demo</title>
</head>
<body>
<p>This is a simple paragraph.</p>
<p align=”center”>This paragraph is centered using the align attribute.</p>
<p style=”color: blue; font-size: 18px;”>This paragraph has custom styles applied using the style attribute.</p>
<p title=”Tooltip text on hover”>Hover over this paragraph to see the title attribute in action.</p>
<p id=”special”>This paragraph has an ID attribute assigned for targeting with CSS or JavaScript.</p>
</body>
</html>
output:
This is a simple paragraph.
This paragraph is centered using the align attribute.
This paragraph has custom styles applied using the style attribute.
Hover over this paragraph to see the title attribute in action.
This paragraph has an ID attribute assigned for targeting with CSS or JavaScript.
Program 3 :
<!DOCTYPE html>
<html>
<head>
<title>Text Formatting Demo</title>
</head>
<body>
<p>This is <b>bold</b> text using the <b> tag.</p>
<p>This is <i>italic</i> text using the <i> tag.</p>
<p>This is <u>underlined</u> text using the <u> tag.</p>
<p>This is <b><i><u>combined</u></i></b> formatting using nested tags.</p>
</body>
</html>
This is bold text using the <b> tag.
This is italic text using the <i> tag.
This is underlined text using the <u> tag.
This is combined formatting using nested tags.
<!DOCTYPE html>
<html lang=”en”>
<head>
<title>Character Entities Demo</title>
</head>
<body>
<p><p> This is an example of using &lt; and &amp; in HTML.</p>
<p>© Copyright symbol: &copy;</p>
<p>😄 Smiley face emoji: &#128516;</p>
<p>💻 Personal computer emoji: &#x1F4BB;</p>
</body>
</html>
output:
<p> This is an example of using < and & in HTML.
© Copyright symbol: ©
😄 Smiley face emoji: 😄
💻 Personal computer emoji: 💻
.
program 5:
<!DOCTYPE html>
<html lang=”en”>
<head>
<meta charset=”UTF-8″>
<title>Subscript and Superscript Demo</title>
</head>
<body>
<p>This is a normal text with <sub>subscript</sub> and <sup>superscript</sup> text.</p>
<p>Chemical formula: H<sub>2</sub>O (water)</p>
<p>10<sup>2</sup> = 100 (Ten squared)</p>
</body>
</html>
OUTPUT:
This is a normal text with subscript and superscript text.
Chemical formula: H2O (water)
102 = 100 (Ten squared)
program 6 :
<!DOCTYPE html>
<html lang=”en”>
<head>
<meta charset=”UTF-8″>
<title>Font Tag Demo</title>
</head>
<body>
<font face=”Arial”>This text uses the Arial font face.</font><br>
<font color=”blue”>This text is blue in color.</font><br>
<font size=”5″>This text is size 5.</font><br>
<font face=”Verdana” color=”green” size=”3″>This text uses Verdana font, green color, and size 3.</font>
</body>
</html>
OUTPUT:
program 7 :
<!DOCTYPE html>
<html lang=”en”>
<head>
<meta charset=”UTF-8″>
<title>List Demo</title>
</head>
<body>
<h2>Ordered List (ol) with Attributes</h2>
<ol type=”1″>
<li>First item</li>
<li>Second item</li>
<li>Third item</li>
</ol>
<h2>Unordered List (ul) with Attributes</h2>
<ul type=”square”>
<li>Apple</li>
<li>Orange</li>
<li>Banana</li>
</ul>
<h2>Ordered List (ol) with Start Attribute</h2>
<ol start=”5″>
<li>Fifth item</li>
<li>Sixth item</li>
<li>Seventh item</li>
</ol>
<h2>Unordered List (ul) with Disc Type</h2>
<ul type=”disc”>
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ul>
</body>
</html>
OUTPUT:
program 8 :
OUTPUT:
program 9 :
OUTPUT:
program 10 :
OUTPUT:
program 11 :
<!DOCTYPE html>
<html lang=”en”>
<head>
<title>Anchor Tag Demo</title>
</head>
<body>
<h2>Anchor Tag Example</h2>
<p><a href=”https://www.example.com”>Visit Example.com</a></p>
<p><a href=”#section2″>Jump to Section 2</a></p>
<h2 id=”section2″>Section 2</h2>
<p><a href=”mailto:info@example.com”>Email us</a></p>
<p><a href=”tel:+1234567890″>Call us</a></p>
</body>
</html>
OUTPUT:
program 12 :
OUTPUT:
| ID | Name | Department | Salary |
|---|---|---|---|
| 001 | John Doe | IT | $60,000 |
| 002 | Jane Smith | HR | $55,000 |
program 13 :
OUTPUT:
| Task | Assigned To | Status |
|---|---|---|
| Project A | John | Completed |
| Jane | In Progress | |
| Project B - Team Task | ||
program 14 :
OUTPUT
program 15 :
OUTPUT
This is a paragraph with some text. This part is important.
Another paragraph here.
program 16 :
styles.css):OUTPUT
This is a paragraph with some text. This part is important.
Another paragraph here.
program 17 :
OUTPUT
This is a paragraph with some text. This part is important.
Another paragraph here.
