how to create table tag in html
How to create table tag in html
This Blog You Will Learn
ஃ What is an HTML Table
ஃ HTML Table Elements
ஃ Syntax of HTML <table> tag
ஃ Explain Program
ஃ Output
What is an HTML Table
- <table>
- TABAE tag create the table structure all row amd cells must inside
- <tr> - Table row
- <th> - Table Header
- <td> - Table tata
Syntax of HTML <table> tag
<table > <!-- table rows and cell go here-->
</table>
✔ HTML <table> tag use create and structure the tabular data.
✔ html table tag information in rows and columns.
✔ html <table> :- defines the table.
✔ html <tr> :- table row
✔ html <th> :- table header cell center bold default th
✔ html <td> :- table data cell
✔ html <caption> :- table description or title
how to create table tag in html
Example
how to create table tag in html
Explain Program
Step 1]
<!DOCTYPE html>
This declare the document type.
browser that the document is written in html
Step 2 ]
<html>.... . </html>
html is the root element of the html page.
Every thing inside it is part of the webpage.
Step 3]
<head>.....</head>
head section contain metadata about the webpage information
for the browser not display on the webpage.
Step 4]
<style> tag is use to write css inside the HTML file.
- <table> :- create whole table .
- <th> :- create header cells.
- <td> :- create table data cells.
entire table
header cell
data cell
- table row ( <tr> ) tag html
- <tr> tag defines a single row in table.
- define table row
- <th> tag (table header cells)
- Text bold and Text Centered by default
- use for column titles
- <table>,<body>,<html> tag contains all the visible content of the page.
- </table> ends the table.
- inside <body> show the browser screen.
- </html> ends the HTML document

Comments
Post a Comment