Learn HTML: Basics of Web Development with HTML by Vanamala Srinivas

Learn HTML: Basics of Web Development with HTML by Vanamala Srinivas

Author:Vanamala, Srinivas [Vanamala, Srinivas]
Language: eng
Format: epub
Published: 2020-03-19T16:00:00+00:00


Live Preview

Exercise 2

Download the Exercise 2

Exercise 2: Create one HTML page and make the page looks like this with Article tag.

Live Preview

6 TABLES

6.1 – Simple Table

Usage of Table

Table is used to arrange data in a row and column format. It is similar to show data in a database format or excel sheet format.

Table tags:

<table> tag is used to defined the table

<th> is used to define heading.

<tr> is used to mention row.

<td> represents column in the table.

TAG: <table>, <th>, <tr>, <td>

ELEMENT:

<table>

<th>Heading</th>

<tr>

<td>Column</td>

</tr>

</table>

Sample Example

Download the Example

<!DOCTYPE html>

<html>

<head>

<meta charset="utf-8">

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<meta name="description" content="Page Description">

<title>Simple Table</title>

</head>

<body>

<h1>Simple Table Example</h1>

<table>

<tr>

<th>Heading 1</th>

<th>Heading 2</th>

</tr>

<tr>

<td>Col 1</td>

<td>Col 2</td>

</tr>

</table>

<hr>

<table>

<tr>

<th>ID</th>

<th>Name</th>

</tr>

<tr>

<td>1</td>

<td>John Smith</td>

</tr>

<tr>

<td>2</td>

<td>Walter Junior</td>

</tr>

</table>

</body>

</html>

Simple Table Example:



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.