AR HTML File
AR HTML File
Anurag Singh
PGDCA (Sem-1)
249467
S. No Program Discription
1 To write a program using Text Formatting Tags in HTML
2 To write a program using Heading Tags in HTML
3 To write a program using Paragraph Tag in HTML
4 To write a program using Unpaired Tags in HTML
5 To write a program using Font Tag in HTML
6 To write a program using Body Tag and its attributes in HTML
7 To write a program using Marquee Tag and its attributes in
HTML
8 To write a program using List Tag in HTML
9 To write a program using Ordered List Tag in HTML
10 To write a program using Unordered List Tag in HTML
11 To write a program using Nested List Tag in HTML
12 To write a program using Table Tag and its attributes in HTML
13 To write a program using Colspan attribute in Table with BG
Color in HTML
14 To write a program using Rowspan attribute in Table in HTML
15 To write a program using Cell Spacing attribute in Table in
HTML
16 To write a program using Cell Padding attribute in Table in
HTML
17 To write a program using External Linking Tag in HTML
18 To write a program using Internal Linking Tag in HTML
19 To write a program using IMG Source Tag in HTML
1. To write a program using Text Formatting Tags
<html>
<head>
</head>
<body>
</body>
</html>
Output :-
2. To write a program using Heading Tags in HTML
<html>
<head>
</head>
<body>
</body>
</html>
Output :-
3. To write a program using Paragraph Tag in HTML
<html>
<head>
</head>
<body>
<p>I Am Anurag and here I am using Paragraph tag. The paragraph tag is used to define blocks of text,
and it automatically adds some space before and after the paragraph.</p>
<p>This is the third line of paragraph. Paragraph tags make it easy to separate text into readable
sections.</p>
</body>
</html>
Output :-
4. To write a program using Unpaired Tags in HTML
<html>
<head>
</head>
<body>
<p>This is an example of a line break tag and it is an sigular tag which means it only contains an
opening tag.<br>This text appears on a new line.</p>
<hr>
</body>
</html>
Output :-
5. To write a program using Font Tag in HTML
<html>
<head>
</head>
<body>
<p><font color="blue" size="4" face="Times New Roman">This text is blue, size 4, and in Times New
Roman font.</font></p>
</body>
</html>
Output :-
6. To write a program using Body Tag and its attributes in HTML
<html>
<head>
</head>
<p> The <b>bgcolor</b> attribute sets the background color of the page (light blue here).</p>
<p> The <b>alink</b> attribute sets the color of active links when clicked.</p>
</body>
</html>
Output :-
7. To write a program using Marquee Tag and its attributes in HTML
<html>
<head>
</head>
<body>
</body>
</html>
Output :-
8. To write a program using List Tag in HTML
<html>
<head>
</head>
<body>
<h2>Unordered List</h2>
<ul>
<li>Anurag</li>
<li>Gurleen</li>
<li>Honey</li>
</ul>
<h2>Ordered List</h2>
<ol>
<li>First </li>
<li>Second </li>
<li>Third </li>
</ol>
<h2>Definition List</h2>
<dl>
<dt>HTML</dt>
</dl>
</body>
</html>
Output :-
<head>
<title>Ordered List</title>
</head>
<body>
<h1>Ordered List</h1>
<ol>
<li>Anurag</li>
<li>Gurleen</li>
<li>Sukhjinder</li>
</ol>
<ol start="4">
<li>Raman</li>
<li>Jot</li>
</ol>
</body>
</html>
Output :-
10. To write a program using Unordered List Tag in HTML
<html>
<head>
</head>
<body>
<ul type="Square">
<li>Anurag</li>
<li>Gurleen</li>
<li>Sukh</li>
</ul>
</body>
</html>
Output :-
11. To write a program using Nested List Tag in HTML
<html>
<head>
<title>Nested List</title>
</head>
<body>
<h1>Nested List</h1>
<ul>
<li>Anurag</li>
<li>Gurleen</li>
</ul>
<ul>
<li>PGDCA</li>
</ul>
<ol>
<li>249467</li>
<li>249466</li>
</ol>
</body>
</html>
Output :-
12. To write a program using Table Tag and its attributes in HTML
<html>
<head>
</head>
<body>
<h1>HTML Table</h1>
<tr>
<th>Name</th>
<th>Age</th>
<th>City</th>
</tr>
<tr>
<td bgcolor="blue">Anurag</td>
<td>24</td>
<td>FGS</td>
</tr>
<tr>
<td bgcolor="green">Gurleen</td>
<td>22</td>
<td>Ludhiana</td>
</tr>
<tr>
<td bgColor="red">Sukh</td>
<td>26</td>
<td>Fazilka</td>
</tr>
</table>
</body>
</html>
Output :-
13. To write a program using Colspan attribute in Table with BG Color
in HTML
<html>
<head>
</head>
<body>
<tr>
</tr>
<tr>
<td>Name</td>
<td>Age</td>
</tr>
<tr>
<td>Anurag</td>
<td>20</td>
</tr>
<tr>
<td>Guri</td>
<td colspan="2">25</td>
</tr>
</table>
</body>
</html>
Output :-
<head>
<title>Rowspan </title>
</head>
<body>
<table border="1">
<tr>
<th>Name</th>
<th>Age</th>
<th>City</th>
</tr>
<tr>
<td>Anurag</td>
<td>22</td>
<td>Sirhind</td>
</tr>
<tr>
<td rowspan="2">Gur</td>
<td>25</td>
<td>Lopon</td>
</tr>
<tr>
<td>26</td>
<td>Sirhind</td>
</tr>
</table>
</body>
</html>
Output :-
15. To write a program using Cell Spacing attribute in Table in HTML
<html>
<head>
</head>
<body>
<tr>
<th>Name</th>
<th>Age</th>
<th>City</th>
</tr>
<tr>
<td>Anu</td>
<td>24</td>
<td>Sirhind</td>
</tr>
<tr>
<td>Sukh</td>
<td>26</td>
<td>Fazilka</td>
</tr>
</table>
</body>
</html>
Output :-
<head>
</head>
<body>
<tr>
<th>Name</th>
<th>Age</th>
<th>City</th>
</tr>
<tr>
<td>Anu</td>
<td>24</td>
<td>Sirhind</td>
</tr>
<tr>
<td>Sukh</td>
<td>26</td>
<td>Fazilka</td>
</tr>
</table>
</body>
</html>
Output :-
17. To write a program using External Linking Tag in HTML
<html>
<head>
<title>External Linking</title>
</head>
<body>
<h1>External Link</h1>
</body>
</html>
Output :-
18. To write a program using Internal Linking Tag in HTML
<html>
<head>
</head>
<body>
<h1>Internal Linking</h1>
</body>
</html>
Output :-
19. To write a program using IMG Source Tag in HTML
<html>
<head>
</head>
<body>
<h1>Image Displayed</h1>
<img src="https://www.mansory.com/sites/default/files/styles/1170_x_full_box_image/public/2023-
09/image00001.jpg?itok=A-FTMhY7"alt="any error" width="600" height="300">
</body>
</html>
Output :-