Practice Questions for Students

Test your knowledge of the fundamental HTML concepts

Q1: What does HTML stand for?

Answer: HTML stands for HyperText Markup Language.

Q2: Which tag is used to define the main structure of the HTML document?

Answer: The <html> tag defines the main structure.

Q3: Difference between Frontend and Backend?
Frontend: The part users interact with (HTML, CSS, JavaScript).
Backend: Server-side logic, databases, and data handling (Python, Java, PHP, etc.).
Q4: Basic structure of an HTML document?
<!DOCTYPE html>
<html>
<head>
    <title>My Web Page</title>
</head>
<body>
    <h1>Hello World</h1>
    <p>This is my first webpage.</p>
</body>
</html>
Q5: Which tag is used to create a paragraph?

Answer: The <p> tag.

<p>This is a paragraph.</p>
Q6: Syntax for inserting an image?
<img src="image.jpg" alt="Description of image">

src → Path of image | alt → Alternative text

Q7: What is the purpose of the href attribute?

Answer: It specifies the URL (link destination) in an anchor tag.

<a href="https://www.example.com">Visit Website</a>
Q8: How many heading levels are available?

Answer: There are 6 heading levels (h1 to h6).

<h1>Main Heading</h1>
<h2>Sub Heading</h2>
<h3>Section Heading</h3>