0% found this document useful (0 votes)
4 views4 pages

Train Schedule and Email Form

The document contains various HTML examples including a train schedule with details such as train name, place, destination, train number, arrival and departure times, and fare. It also includes an image layout with multiple images and a form for composing an email with fields for recipient, CC, and message. Additionally, there is a frameset example demonstrating a layout with multiple frames.

Uploaded by

kpgichu19
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views4 pages

Train Schedule and Email Form

The document contains various HTML examples including a train schedule with details such as train name, place, destination, train number, arrival and departure times, and fare. It also includes an image layout with multiple images and a form for composing an email with fields for recipient, CC, and message. Additionally, there is a frameset example demonstrating a layout with multiple frames.

Uploaded by

kpgichu19
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

<html>

<head>
<title>Train Schedule</title>
</head>
<body>
<h2>Train Schedule</h2>
<table border="1" width="100%" cellspacing="0" cellpadding="5">
<tr>
<th rowspan="2">Name of Train</th>
<th rowspan="2">Place</th>
<th rowspan="2">Destination</th>
<th rowspan="2">Train No.</th>
<th colspan="2">Time</th>
<th rowspan="2">Fare</th>
</tr>
<tr>
<th>Arrival</th>
<th>Departure</th>
</tr>
<tr>
<td>Express 101</td>
<td>City A</td>
<td>City B</td>
<td>101</td>
<td>10:00 AM</td>
<td>10:30 AM</td>
<td>$25</td>
</tr>
</table>
</body>

cellpadding: It defines the space inside a table cell, between the cell content and its border. In
your code, cellpadding="5" means there will be 5 pixels of space around the text inside each cell.

cellspacing: It defines the space between adjacent table cells. cellspacing="0" in your code means
there will be no extra space between the borders of the cells.
<html>
<head>
</head>
<body>
<h2>Image Layout</h2>
<table border="0">
<tr>
<td><img src="[Link]" alt="Image 1"></td>
</tr>
<tr>
<td></td>
<td><img src="[Link]" alt="Image 2"></td>
</tr>
<tr>
<td></td>
<td></td>
<td><img src="[Link]" alt="Image 3"></td>
</tr>
</table>
</body>
</html>
<html>
<head>
<title>Compose Email</title>
</head>
<body>
<h2>Compose Email</h2>
<form>
<label>To:</label>
<input type="email" id="to" name="to" required><br><br>

<label>Copy:</label>
<input type="email" id="cc" name="cc"><br><br>

<label>Message:</label><br>
<textarea id="message" name="message" rows="5" cols="40"></textarea><br><br>

<input type="submit" value="Send">


</form>
</body>
</html>
<html>
<head>
<title>Frameset Example</title>
</head>
<frameset cols="30%, 70%">
<frame src="[Link]" name="left">
<frameset rows="40%, 60%">
<frame src="[Link]" name="topRight">
<frameset cols="50%, 50%">
<frame src="[Link]" name="bottomLeft">
<frame src="[Link]" name="bottomRight">
</frameset>
</frameset>
</frameset>
</html>

You might also like