what is html TR tag
This Blog You Will Learn
ஃWhat is the HTML <TR> Tag
ஃWhy Use the <tr> Tag.
ஃ Syntax of HTML <tr> tag
ஃExplain Program
ஃOutput
What is the HTML <TR> Tag
✅HTML tag <tr> tag use create row inside a Table.
✅row define a row within an html table.functions as container table cells.
✅HTML <tr> tag stand for table row.used to define a row within an HTML table.
✅HTML <tr> tag contains table cells <th>cells for headers or <td> cells
✅HTML <tr> tag creates one row of cells in table.
Why Use the <tr> Tag.
✔ <tr> table data horizontally
✔ separates each set of cells into distinct rows.
✔ display table data in orderly structure.
✔ <thead>, <tbody>, <tfoot> structure tables semantically
✔ <thead> - contains header rows
✔ <tbody> - contains body rows
✔ <tfoot> - contains footer rows
Syntax
Syntax of HTML <tr> tag
. <!-- body tag content visible to webpage-->
.
how to use TR tag in h
Example
how to use TR 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> tag head section of the html page.
<head> section contains information about webpage not appears on the screen.
Step 4]
<title> HTML TR table tag </title>
<title> tag on the webpage.appears on the browser tag.
show HTML TR table tag
Step 5]
<body>.....</body>
<body> tag contains all the visible content of the webpage.
inside <body> show the browser screen.
Step 6]
- <tr> tag - table row.
- normally use inside a<table> tag.
- contain <td> or <th> cells.
- use <tr> without a <table> browser will show the text.
Step 7]
closing the Tag
Related Post :-
