HTML
HTML
HTML XML
Q3. Explain HTML tags and their attributes: (i) List (1) Table
(i) List:
HTML provides several tags for creating lists, the most common being <ul>, <ol>, and <li>.
<ul> (Unordered List): This tag is used to create an unordered or bulleted list. It contains a list of items,
which are typically marked with bullet points.
Attributes:
<ol> (Ordered List): This tag is used to create an ordered or numbered list. It contains a list of items that
are automatically numbered.
Attributes:
<li> (List Item): This tag is used to define individual items within a list, whether it's an ordered or
unordered list.
Attributes:
value: For ordered lists, specifies the value of the list item.
(ii) Table:
HTML uses the <table> element to create tables, and several related elements to structure and style the
tables. Commonly used related elements include <tr>, <th>, and <td>.
<table>: This tag is used to define the table itself. It contains rows and columns that structure the data.
Attributes:
border: Specifies the width of the table border.
cellpadding: Sets the space between cell content and cell borders.
<tr> (Table Row): This tag defines a row within the table.
Attributes:
<th> (Table Header Cell): This tag defines a header cell within a table. Header cells are typically used for
column or row headings.
Attributes:
<td> (Table Data Cell): This tag defines a standard data cell within the table.
Attributes:
These are the fundamental HTML tags and their attributes used for creating lists and tables in web
pages. Attributes allow you to customize the behavior and appearance of these elements.
Q4. create an HTML code to create the user registeration form with following from with
following details username, uses DOB, address, sendes, email id, cser mobile number.
<html>
<head>
</head>
<body>
<label for="username">Username:</label>
<label for="address">Address:</label>
<label for="gender">Gender:</label>
</form>
</body>
</html>
OUTPUT:-