Instructions
Attempt all questions.
Write clearly and neatly.
Use proper HTML tags and syntax.
Marks are given with each question.
Section A: Multiple Choice Questions (10 Marks)
Q1. What does HTML stand for?
a) Hyper Trainer Marking Language
b) Hyper Text Markup Language
c) High Text Marketing Language
d) Hyper Text Markdown Language
Q2. Which tag is used to create a paragraph?
a) <h1>
b) <p>
c) <br>
d) <div>
Q3. Which tag is used to insert an image?
a) <img>
b) <image>
c) <src>
d) <pic>
Q4. Which attribute is used in the anchor tag for links?
a) src
b) href
c) action
d) method
Q5. Which tag is used to create a table row?
a) <td>
b) <th>
c) <tr>
d) <table>
Section B: Short Questions (20 Marks)
Q6. Write the basic structure of an HTML document.
<!DOCTYPE html>
<html lang="en">
<head>
<title>Document</title>
</head>
<body>
</body>
</html>
Q7. What is the difference between <ol> and <ul>?
<ol> In ol html assigns numeric number for each item in the list.
<ul> In ul html gives symbols like circle, disc for each item in the list.
Q8. What is the use of <table>, <tr>, and <td> tags?
In html <table> tag is used to create a table. Using table tag also optimize SEO score.
<tr> is used to define a table row.
In html <td> is used to display Table Data in a table.
Q9. What is the use of the <form> tag in HTML?
Form tag is used to create a form in html, Using form tag also optimize SEO score.
Q10. Write HTML code to insert an image named [Link] with width 200 and height
150.
<img src="[Link]" alt="student image" width="200" height="150">
Section C: Practical Question (20 Marks)
Q11. Create a complete HTML page with:
- A main heading: Student Registration
- One paragraph
- A table (3 rows, 3 columns)
- A form (Name, Email, Password, Submit)
- One image
- One link
<body>
<h1>Student Registration</h1>
<p>
Lorem ipsum dolor sit amet consectetur adipisicing.
</p>
<table>
<thead>
<tr>
<th>Name</th>
<th>Roll No</th>
<th>Age</th>
</tr>
</thead>
<tbody>
<tr>
<td>Umar</td>
<td>30</td>
<td>24</td>
</tr>
<tr>
<td>ali</td>
<td>24</td>
<td>20</td>
</tr>
<tr>
<td>Rameez</td>
<td>14</td>
<td>26</td>
</tr>
</tbody>
</table>
<br>
<form action="" method="post">
<label for="name">Name</label>
<input type="text" id="name" placeholder="Enter Your Name">
<br>
<label for="email">Email</label>
<input type="email" id="email">
<br>
<label for="password">Password</label>
<input type="password" id="password">
<br>
<button type="submit">Submit</button>
</form>
<img src="[Link]" alt="student image" width="200" height="150">
<br>
<a href="[Link] target="_blank">Google</a>
</body>