Question

What is the difference in appearance between the contents of <th> and <td> tags with default...

What is the difference in appearance between the contents of <th> and <td> tags with default formatting?

0 0
Add a comment Improve this question Transcribed image text
Answer #1

th : table header

should be only one row for a table In <th> the text content will be bold and centered by default.

td : table definition, that defines the properties of the cell in the table. in <td> the text content wiil be regular and left-aligned by default.

Example :

<html>

<head>

<title> table-format</title>

</head>

<body>

<table>

<tr>

<th>fruits</th>

<th>Rate</th>

</tr>

<tr>

<td> Apple </td>

<td> $5</td>

</tr>

<tr>

<td> Mango </td>

<td> $10</td>

</tr>

</table>

</body>

</html>

fruits Rate Apple S5 Mango $10

By default the header of the table is bold and center aligned and data is left aligned with normal font.

Add a comment
Know the answer?
Add Answer to:
What is the difference in appearance between the contents of <th> and <td> tags with default...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT