This tag creates an unordered list.
<ul>
This tag creates a table.
<table>
This attribute sets the width of a table.
width
This tag adds a title to a table.
<caption>
This CSS property changes text color.
color
This tag creates an ordered list.
<ol>
This tag creates a row in a table.
<tr>
This attribute sets the border thickness.
border
This attribute allows a cell to span across columns.
colspan
This CSS property changes font type.
font-family
This tag defines each item in a list.
<li>
This tag creates a data cell.
<td>
This attribute sets the background color of a table.
bgcolor
This attribute allows a cell to span across rows.
rowspan
This CSS property changes text size.
font-size
This type of list uses <dt> and <dd> tags.
description list
This tag creates a heading cell.
<th>
This attribute controls space inside table cells.
cellpadding
What is used to keep an empty cell visible?
This CSS property sets page margins.
margin
Write the code for an ordered list starting at number 5.
<ol start="5">
<li>Item 1</li>
<li>Item 2</li>
</ol>
What is the difference between <td> and <th>?
<td> creates normal data cells, while <th> creates bold and centered header cells.
Write the code to create a table with:
border=1, width=50%, align=center
<table border="1" width="50%" align="center">
</table>
Write a table row with 3 columns where the first cell spans 2 columns.
<tr>
<td colspan="2">Name</td>
<td>Score</td>
</tr>
Write full HTML code to:
<html>
<head>
<style>
body {
margin: 20px;
color: blue;
}
</style>
</head>
<body>
<table border="1">
<tr>
<th>Name</th>
<th>Marks</th>
</tr>
<tr>
<td>Anna</td>
<td>90</td>
</tr>
</table>
</body>
</html>