Introduction
HTML stands for Hyper Text Markup Languages. HTML is the basic building block of web pages in World Wide Web. HTML is not a programming language it is Markup languages the HTML was running in web browser.
We can create a table in web browser normally the table was created in rows and columns and the table header. Let us discuss the creating table using HTML.
The table was created <table> using this tag create a table </table> after you creating a table you are create rows and columns and how many cells are divided and height and width there are table attributes.
The <table> tag defines an HTML table. An HTML table consists of the <table> element and one or more <tr>, <th>, and <td> elements. The <tr>element defines a table row, the <th> element defines a table header, and the <td> element defines a table cell.
Example of a simple HTML table in two rows, two columns:
- <html>
- <head>
- <style>
-
- table, th, td {
- border: 1px solid black;
- }
-
- </style>
- </head>
- <body>
- <table>
- <tr>
- <th>Name</th>
- <th>Age</th>
- </tr>
- <tr>
- <td>VIjay</td>
- <td>20</td>
- </tr>
- <tr>
- <td>Kumar</td>
- <td>21</td>
- </tr>
- </table>
- </body>
- </html>
Creating Links in HTML
A HTML link is a hyper link. A link is also applicable to every web page. A link is defined using the <a> tag. You can add the link text or images and another web pages. if you create a link <a></a>.
Syntax
<a herf=””></a>
Create a sample link in a web page.
On the C-sharp corner web page, to link the word document, just click the link to go to the next page.
- <a href=" https://www.c-sharpcorner.com/">Visit My blog</a>
- <html>
- <head>
- <title>Link</title>
- </head>
- <body>
- <a href=" https://www.c-sharpcorner.com/">Visit My blog</a>
- </body>
- </html>
Using the link, you can easily link your web pages and images. These are the links in HTML.