How to Create A Table and Link in a Web Page using HTML

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:
  1. <html>  
  2.     <head>  
  3.         <style>  
  4.   
  5.          table, th, td {  
  6.             border: 1px solid black;  
  7.          }  
  8.   
  9. </style>  
  10.     </head>  
  11.     <body>  
  12.         <table>  
  13.             <tr>  
  14.                 <th>Name</th>  
  15.                 <th>Age</th>  
  16.             </tr>  
  17.             <tr>  
  18.                 <td>VIjay</td>  
  19.                 <td>20</td>  
  20.             </tr>  
  21.             <tr>  
  22.                 <td>Kumar</td>  
  23.                 <td>21</td>  
  24.             </tr>  
  25.         </table>  
  26.     </body>  
  27. </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.
  1. <a href=" https://www.c-sharpcorner.com/">Visit My blog</a>  
  2. <html>  
  3.     <head>  
  4.         <title>Link</title>  
  5.     </head>  
  6.     <body>  
  7.         <a href=" https://www.c-sharpcorner.com/">Visit My blog</a>  
  8.     </body>  
  9. </html>  
Using the link, you can easily link your web pages and images. These are the links in HTML.