Web Lab 1 and 2
Web Lab 1 and 2
Web Lab 1 and 2
c) Paragraph
d) Horizontal line
e) Line Break
f) Block Quote
g) Pre tag
// MyFirstWebPage.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
.moving-text {
font-size: 24px;
color: blue;
}
@keyframes moveText {
to { transform: translateX(-100%); }
</style>
</head>
<body>
<p>This is a paragraph. It is used to define a block of text. Paragraphs are used to separate different
sections of content.</p>
<hr>
<blockquote>
<p>This is a blockquote. Blockquotes are used for displaying quotations from other sources. They are
typically indented from the rest of the content.</p>
</blockquote>
<pre>
</pre>
<p>
</p>
</body>
</html>
This tag creates a moving text effect using CSS animations. The text "Basic HTML Tags" will scroll
across the screen.
2. Heading Tags:
These tags define headings of various levels, with <h1> being the largest and most important,
down to <h6>, which is the smallest.
3. Paragraph:
The <p> tag defines a paragraph of text. It automatically adds space before and after the
paragraph.
4.Horizontal Line:
The <hr> tag creates a horizontal line, which is typically used to separate content.
5.Line Break:
The <br> tag inserts a line break within text, allowing content to continue on the next line.
6. Block Quote:
The <blockquote> tag is used for displaying quotes from other sources. It typically indents the
quoted text.
7. Preformatted Text:
The <pre> tag displays text in a fixed-width font and preserves both spaces and line breaks.
a) Provide the title as Time Table with table header and table footer, row-span and col-span etc.
b) Provide various colour options to the cells (Highlight the lab hours and elective hours with different
colours.)
// Table.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Time Table</title>
<style>
table {
width: 100%;
border-collapse: collapse;
th, td {
padding: 8px;
text-align: center;
th {
background-color: #f4f4f4;
}
.highlight-lab {
.highlight-elective {
.highlight-weekend {
.break {
.header, .footer {
background-color: #e2e2e2;
font-weight: bold;
</style>
</head>
<body>
<table>
<thead>
<tr>
<th rowspan="3">Time</th>
</tr>
<tr>
<th>Monday</th>
<th>Tuesday</th>
<th>Wednesday</th>
<th>Thursday</th>
<th>Friday</th>
<th>Saturday</th>
</tr>
<tr>
<th colspan="6">Schedule</th>
</tr>
</thead>
<tbody>
<tr>
<td>9:00 - 10:00</td>
<td class="highlight-elective">Math</td>
<td class="highlight-elective">Physics</td>
<td class="highlight-elective">Math</td>
<td class="highlight-elective">Math</td>
<td class="highlight-weekend">Rest</td>
</tr>
<tr>
<td>10:00 - 11:00</td>
<td class="highlight-lab">Lab</td>
<td class="highlight-lab">Lab</td>
<td class="highlight-lab">Lab</td>
<td class="highlight-weekend">Rest</td>
</tr>
<tr>
</tr>
<tr>
<td>11:10 - 12:00</td>
<td>English</td>
<td>English</td>
<td>English</td>
<td>English</td>
<td>English</td>
<td class="highlight-weekend">Rest</td>
</tr>
<tr>
<td>12:00 - 1:00</td>
<td>History</td>
<td>History</td>
<td>History</td>
<td>History</td>
<td>History</td>
<td class="highlight-weekend">Rest</td>
</tr>
<tr>
</tr>
<tr>
<td>1:10 - 2:00</td>
<td class="highlight-weekend">Rest</td>
</tr>
<tr>
<td>2:00 - 3:00</td>
<td class="highlight-lab">Lab</td>
<td class="highlight-lab">Lab</td>
<td class="highlight-lab">Lab</td>
<td class="highlight-weekend">Rest</td>
</tr>
<tr>
<td>3:00 - 4:00</td>
<td>Physical Education</td>
<td>Physical Education</td>
<td>Physical Education</td>
<td>Physical Education</td>
<td>Physical Education</td>
<td class="highlight-weekend">Rest</td>
</tr>
</tbody>
<tfoot>
<tr>
</tr>
</tfoot>
</table>
</body>
</html>