(d) Which of the following tags is used to create gride of rows ?
() <TD>
(ii) <TM>
(iii) <TR>
(iv) <TL>
Answers
Question:
d) Which of the following tags are used to create grid of rows?
(i) <TD> and </TD>
(ii) <TM> and </TM>
(iii) <TR> and </TR>
(iv) <TL> and </TL
Answer:
tag is used to create grid of rows in HTML. Hence, option (iii) is correct.
In HTML, <TD> (Table Data) tag is used to create table cells and <TM> and <TL> aren't considered as a tag in HTML.
Let's learn more! <TH> and </TH> tags are used to create column headers in the table. Here are some attributes of Table Tag!
- BGCOLOR - It specifies the background colour of a table.
- BORDERCOLOR - It specifies the border colour of a table
- BORDER - It specifies the width of border of a table.
- ALIGN - It specifies the alignment of a table.
- HEIGHT - It specifies the height of a table.
- WIDTH - It specifies the width of a table.
- CELLPADDING - It specifies the distance between the boundaries of the cell and the data written in the cell.
- CELLSPACING - It specifies a distance between two adjacent cells.
The BGCOLOR and BORDERCOLOR attributes can be used with this tag to set the background colour and border colour in the table. Different colours can be given to the cells of a same row using BGCOLOR and BORDERCOLOR attributes in <TR> and <TH> tags, different colours can be specified for all the cells of a row using these attributes in <TR> tag.