CMT-CS Course Outline
CMT-CS Course Outline
Topics Covered:
HTML (HyperText Markup Language) is the standard language used to create and structure
content on the web. It tells the browser what to display (like text, images, links, etc.).
3. The server responds with the HTML (and other files like CSS, JS).
4. The browser reads the HTML and displays the content on the screen.
Example:
➢ Creating headings (<h1> to <h6>), paragraphs (<p>), and line breaks (<br>).
Headings are used for titles and subtitles.
<h1>Main Title</h1>
<h2>Subtitle</h2>
<h3>Section Title</h3>
<ol>
<li>Wake up</li>
<li>Brush teeth</li>
<li>Have breakfast</li>
</ol>
<ul>
<li>Cricket</li>
<li>Football</li>
<li>Table Tenuis </li>
</ul>
3. Description List (<dl>) – Terms and Descriptions
<dl>
<dt>HTML</dt>
<dt>CSS</dt>
</dl>
Hands-On Coding Activity
<!DOCTYPE html>
<html>
<head>
<title>Text Formatting & Lists</title>
</head>
<body>
</body>
</html>
Assignment: Make a webpage listing your hobbies with formatted text and bullet points.
3: Links, Images, and Tables
Objective:
Topics Covered:
The src attribute defines the image location, and alt provides alternative text if the image cannot be
shown.
<html lang="en">
<head>
<meta charset="UTF-8">
</head>
<body>
<h3>Class Timetable</h3>
<tr>
<th>Day</th>
<th>Topic</th>
<th>Time</th>
</tr>
<tr>
<td>Monday</td>
</tr>
<tr>
<td>Tuesday</td>
</tr>
<tr>
<td>Wednesday</td>
<td>Coding Exercises</td>
</tr>
</table>
</body>
</html>
Assignment: Create a webpage with a table (e.g., class timetable) and external links.
________________________________________
Topics Covered:
Form Structure (<form>, <input>, <textarea>, <select>):
Create a container for user inputs like text fields, large text areas, and dropdown menus.
Different input types allow users to enter various kinds of data (like text, passwords, selecting options, or
submitting the form).
Labels describe inputs for better accessibility. Basic validation ensures required fields are filled and
correct data formats are entered.
________________________________________
.form-container {
background-color: #ffffff;
padding: 30px;
border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
width: 300px;
}
.form-container h2 {
text-align: center;
margin-bottom: 20px;
color: #333333;
}
label {
font-weight: bold;
display: block;
margin-bottom: 5px;
}
input[type="text"],
input[type="email"],
input[type="password"] {
width: 100%;
padding: 8px;
margin-bottom: 15px;
border: 1px solid #ccc;
border-radius: 5px;
}
input[type="radio"] {
margin-right: 5px;
}
.gender-group {
margin-bottom: 15px;
}
input[type="submit"] {
width: 100%;
background-color: #4CAF50;
color: white;
padding: 10px;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 16px;
}
input[type="submit"]:hover {
background-color: #45a049;
}
</style>
</head>
<body>
<div class="form-container">
<h2>Registration Form</h2>
<form action="#" method="post">
<label for="name">Name:</label>
<input type="text" id="name" name="name" required>
<label for="email">Email:</label>
<input type="email" id="email" name="email" required>
<label for="password">Password:</label>
<input type="password" id="password" name="password" required>
<div class="gender-group">
<label>Gender:</label>
<input type="radio" id="male" name="gender" value="Male" required>
<label for="male">Male</label>
<input type="radio" id="female" name="gender" value="Female" required>
<label for="female">Female</label>
</div>
<input type="submit" value="Register">
</form>
</div>
</body>
</html>