Explain the following with respect to table creation in XHTML documents

The Eduladder is a community of students, teachers, and programmers just interested to make you pass any exams. So we solve previous year question papers for you.
See Our team
Wondering how we keep quality?
Got unsolved questions?

Ask Questions

PROGRAMMING-THE-WEB-10CS73-->View question

Explain the following, with respect to table creation in XHTML documents?

i) table ii)tr, th and td attributes iii)rowspan and colspan attributes iv) text decoration v)span and div.

Asked by:Rajiv

Taged users:

Be first to like this question

Be first to dislike this question
Talk about this  Delete  Like  Dislike


A table is a matrix of cells, each possibly having content. The cells can include almost any element some cells have row or column labels and some have data. A table is specified as the content of a <table> tag which is a block tag. A border attribute in the <table> tag specifies a border between the cells. Rule specifies the lines that separate the cells. If border is set to ―orderǁ ,the browser‘s default width border is used. The border attribute can be set to a number, which will be the border width in pixels(0 is no border no rules).

ii)tr, th and td attributes

Each row of a table is specified as the content of a <tr> tag. The row headings are specified as the content of a <th> tag. The contents of a data cell is specified as the content of a <td> tag. The empty cell is specified with a table header tag that includes no content

<th> </th>.


<table border = "border">

<caption> fruit juice drinks </caption>


<th> </th>

<th> Apple </th>

<th> Mango </th>

<th> Strawberry </th>



iii)rowspan and colspan attributes

A table can have two levels column labels and also row labels. If so, the colspan attribute must be set in the

<th> tag to specify that the label must span some number of columns.


<th colspan = "3"> Fruit Juice Drinks </th>



<th> Orange </th>

<th> Apple </th>

<th> Screwdriver </th>


<caption> fruit juice drinks </caption>

<tr> <td rowspan="2">


<th colspan="3">Juices chart</th>

</tr> <tr>

<th> </th>

iv) text decoration

The text-decoration property is used to specify some special features of text. The available values are line-through, overline, underline, and none, which is the default. Many browsers implicitly underline links. The none value can be used to avoid this underlining. Note that text-decoration is not inherited. The following document, decoration.html, illustrates the linethrough, overline, and underline values:

Answerd By:Rajiv

Be first to like this answer

Be first to dislike this answer
Talk about this  Delete  Like  Dislike

Can you help us to add better answer here? Please see this

You may also like our videos

Below are some of the videos from our collection. We saw that students not only needed content but also videos. So, we decided to build a video platform for you also an algorithm which shows best videos suites to you related to the content you are browsing check out some videos which suit best for you.

Lets together make the web is a better place

We made eduladder by keeping the ideology of building a supermarket of all the educational material available under one roof. We are doing it with the help of individual contributors like you, interns and employees. So the resources you are looking for can be easily available and accessible also with the freedom of remix reuse and reshare our content under the terms of creative commons license with attribution required close.

You can also contribute to our vision of "Helping student to pass any exams" with these.
Answer a question: You can answer the questions not yet answered in eduladder.How to answer a question
Career: Work or do your internship with us.Work with us
Create a video: You can teach anything and everything each video should be less than five minutes should cover the idea less than five min.How to upload a video on eduladder
Donate: Ad revenue alone is not able to take care of our server cost consider donating at least a dollar Click here to donate.

Not the answer you're looking for? Browse other questions from this Question paper or ask your own question.

Ask your question?