Q:

Create a given table in HTML

belongs to collection: HTML Examples

0

Problem:- Create a given table in HTML or How to Create Student Registration Form with HTML Code? or HTML Code for Designing of a Registration Form using Table or HTML Code for Designing of a Registration Form using Table.

How to Solve:- So In this problem, we have to table in HTML, as we can see that table have multiple rows and a column for rows and column there are <tr> and <td> tags used. we will try to create the same table as problem requirement but I want to tell you one thing while creating a table color may be different so don't worry about color actually we have to focus on creating a table, Color you can change and practice after table created.

Explanation:-  Here are some basic tags that are used on the table, with the help of these Tags you can create a given table Easily. After the explanation section tries to modify the code with your code this will help you to find the error and modification value what you change. If you are facing any difficulty while creating a table let I know in the comment box so I can try to fulfill your query as soon as possible. for meantime read this tags and use.

<th> Defines a header cell in a table
<tr> Defines a row in a table
<td> Defines a cell in a table
<caption> Defines a table caption

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Table.html

<!DOCTYPE html>
<html>
<head>

<title>HTML Table Cellpadding</title>
</head>

<body bgcolor="aqua">
<table border="1" cellpadding="5" cellspacing="5" align="center" height="400" width="700">

<tr>
<th rowspan="3" ><p size="50px">day</p></th>
<th colspan="3">seminar</th></tr>
<tr>
<th colspan="2">schedule</th>
<th rowspan="2">topic</th>
</tr>
<tr>
<th>begin</th><th>end</th>
</tr>

<tr>
<td rowspan="2">Monday</td>
<td rowspan="2" bgcolor="orange">8:00 a.m.</td>
<td rowspan="2" bgcolor="blue">5:00 p.m.</td>
<td >Introduction to XML</td>
</tr>
<tr><td >Validity: DTD and Relax NG</td></tr>

<tr>
<td rowspan="3">Tuesday</td>
<td bgcolor="orange">8:00 a.m.</td>
<td bgcolor="orange">11:00 a.m.</td>
<td >XPath</td>
</tr>
<tr>
<td bgcolor="orange">11:00 a.m.</td>
<td bgcolor="green"> 2:00 p.m.</td>
<td rowspan="2"> XSL Transformatics</td>
<tr><td bgcolor="green">2:00 p.m.</td>
<td bgcolor="blue">5:00 p.m.</td>
</tr>
</tr>
<tr>
<td>Wednesday</td>
<td bgcolor="orange">8:00 a.m.</td>
<td bgcolor="green">12:00 p.m.</td>
<td>XSL Formatting Objects</td>
</tr>

</table>
<p align="center ">table by yousef</p>
</body>

</html>

 

Output:

day seminar
schedule topic
begin end
Monday 8:00 a.m. 5:00 p.m. Introduction to XML
Validity: DTD and Relax NG
Tuesday 8:00 a.m. 11:00 a.m. XPath
11:00 a.m. 2:00 p.m. XSL Transformatics
2:00 p.m. 5:00 p.m.
Wednesday 8:00 a.m. 12:00 p.m. XSL Formatting Objects

Table By-Ghanendra Yadav

------------------------------

Create a given table in HTML

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Create An HTML Page With Different Frames Such As ... >>
<< Student Registration Form in HTML with CSS...