LEARN TO MAKE TABLES IN HTML
HTML Table Tags
Tag	Description
<table>	Defines a table
<th>	Defines a header cell in a table
<tr>	Defines a row in a table
<td>	Defines a cell in a table
<caption>	Defines a table caption
<colgroup>	Specifies a group of one or more columns in a table for formatting
<col>	Specifies column properties for each column within a <colgroup> element
<thead>	Groups the header content in a table
<tbody>	Groups the body content in a table
<tfoot>	Groups the footer content in a table
1. OPEN NOTEPAD
2. WRITE THE GIVEN CODE
<!DOCTYPE html>
<html>
<style>
table, th, td {
  border:1px solid black;
}
</style>
<body>
<h2>TABLE RELATED TO EMPLOYEE DETAIL</h2>
<table style="width:100%">
  <tr>
   <td>NAME</td>
    <td>EMAIL</td>
    <td>CONTACT NUMBER</td>
  </tr>
  <tr>
    <td>MARK</td>
    <td>mark123@hotmail.com</td>
    <td>356457567</td>
  </tr>
</table>
3. NOW SAVE THE FILE WITH ANYNAME.HTML
4. NOW RUN THE HTML FILE ON BROWSER

No comments:
Post a Comment