0% found this document useful (0 votes)
0 views

Web Development Program

The document contains two practical HTML exercises. The first demonstrates various text formatting tags such as bold, italic, and underlined text, along with a hyperlink. The second exercise illustrates how to create a star pyramid using preformatted text in HTML.

Uploaded by

negiabhinav57
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
0 views

Web Development Program

The document contains two practical HTML exercises. The first demonstrates various text formatting tags such as bold, italic, and underlined text, along with a hyperlink. The second exercise illustrates how to create a star pyramid using preformatted text in HTML.

Uploaded by

negiabhinav57
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

PRACTICAL 1

1.Demonstrate all the text formatting tags in a single HTML page.


Source Code:
<!DOCTYPE html>
<html lang="en">
<title>HTML tags</title>
</head>
<body>
<h1>HTML TAGS</h1>
<p>Demonstarting all text formatting tags in a single HTML Page</p>
<br>
<b>BOLD TEXT</b>
<i>italic</i>
<br>
<u>Text is underlined</u>
<hr>
<sub>2</sub><sup>8</sup>
<pre>Preformatted Text
(Maintains spaces and line breaks) </pre>
<a href=" https://www.google.com/"> Google</a>
</body>
</html>
OUTPUT:

Akanksha Negi E1 07
PRACTICAL 2
2. Write an HTML code to draw the following figure.
*
* *
* * *
* * * *
* * * * *

Source Code:
<!DOCTYPE html>
<html lang="en">
<head>
<title>Star Pyramid</title>
</head>
<body>
<h2>Star Pyramid </h2>
<pre>
*
* *
* * *
* * * *
* * * * *
</pre>
</body>
</html>
OUTPUT:

Akanksha Negi E1 07

You might also like