Write the HTML code to create an unordered list with:
<ul>
<li>Apple</li>
<li>Banana</li>
<li>Mango</li>
</ul>
Create a table with 2 rows and 2 columns.
<table border="1">
<tr>
<td>1</td>
<td>2</td>
</tr>
<tr>
<td>3</td>
<td>4</td>
</tr>
</table>
Create a cell that spans 2 columns.
<td colspan="2">Merged Cell</td>
Make a paragraph text red using inline CSS.
<p style="color: red;">Hello</p>
Fix this code:
<tr>
<td>Name
<td>Age</td>
</tr>
<tr>
<td>Name</td>
<td>Age</td>
</tr>
Create an ordered list starting from 3 with:
<ol start="3">
<li>Red</li>
<li>Blue</li>
<li>Green</li>
</ol>
Create a table with a heading row:
Name | Age
<table border="1">
<tr>
<th>Name</th>
<th>Age</th>
</tr>
</table>
Create a cell that spans 2 rows.
<td rowspan="2">Merged Row</td>
Change font to Arial.
<p style="font-family: Arial;">Hello</p>
Fix:
<ol>
<li>One
<li>Two
</ol>
<ol>
<li>One</li>
<li>Two</li>
</ol>
Create an ordered list using uppercase letters (A, B, C).
<ol type="A">
<li>Math</li>
<li>Science</li>
<li>English</li>
</ol
Create a table with caption “Class List”.
<table border="1">
<caption>Class List</caption>
<tr>
<td>Sample</td>
</tr>
</table>
Create a table with:
<table border="1" cellpadding="10" cellspacing="5">
</table>
Make text size 25px.
<p style="font-size: 25px;">Hello</p>
Fix:
<table border=1>
<table border="1">
Create a nested list:
Subjects
<ul>
<li>ICT</li>
<li>Math
<ul>
<li>Algebra</li>
<li>Geometry</li>
</ul>
</li>
</ul>
Create a table row with 3 cells where the middle cell is empty but visible.
<tr>
<td>One</td>
<td> </td>
<td>Three</td>
</tr>
Create a table with background color yellow.
<table border="1" bgcolor="yellow">
</table>
Make text blue, font Arial, size 20px.
<p style="color: blue; font-family: Arial; font-size: 20px;">
Hello
</p>
Fix:
<td colspan=2>Data</td>
<td colspan="2">Data</td>
Create a description list for:
HTML – HyperText Markup Language
CSS – Cascading Style Sheets
<dl>
<dt>HTML</dt>
<dd>HyperText Markup Language</dd>
<dt>CSS</dt>
<dd>Cascading Style Sheets</dd>
</dl>
Create a table centered on the page with width 60% and border 2.
<table border="2" width="60%" align="center">
</table>
Create a full table with:
Header row: ID | Name | Marks
2 data rows
<table border="1">
<tr>
<th>ID</th>
<th>Name</th>
<th>Marks</th>
</tr>
<tr>
<td>101</td>
<td>Ana</td>
<td>85</td>
</tr>
<tr>
<td>102</td>
<td>Ben</td>
<td>90</td>
</tr>
</table>
Write full HTML page with:
<html>
<head>
<style>
body {
margin: 30px;
color: green;
}
</style>
</head>
<body>
<p>Welcome</p>
</body>
</html>
Fix all errors:
<table border=1 width=50% align=center>
<tr>
<th>Name<td>Marks</td>
<tr>
<td>Anna<td>90
</table>
<table border="1" width="50%" align="center">
<tr>
<th>Name</th>
<th>Marks</th>
</tr>
<tr>
<td>Anna</td>
<td>90</td>
</tr>
</table>