HTML Fundamentals

Test your knowledge on the basics of HTML, the foundation of web development.

15 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

What does HTML stand for?

  1. Hypertext Markup Language
  2. Hypertext Modeling Language
  3. Hypertext Machine Language
  4. Hypertext Markup Link
Question 2 Multiple Choice (Single Answer)

Which HTML element is used to define the main content of a web page?

  1. <head>
  2. <body>
  3. <title>
  4. <html>
Question 3 Multiple Choice (Single Answer)

What is the correct syntax for creating a heading in HTML?

  1. <h1>Heading</h1>
  2. <heading>Heading</heading>
  3. <h>Heading</h>
  4. <head>Heading</head>
Question 4 Multiple Choice (Single Answer)

Which HTML attribute is used to specify the link destination of an anchor (<a>) element?

  1. href
  2. src
  3. alt
  4. title
Question 5 Multiple Choice (Single Answer)

What is the purpose of the <meta> tag in HTML?

  1. To define the title of the web page
  2. To provide metadata about the web page
  3. To create a link to another web page
  4. To insert an image into the web page
Question 6 Multiple Choice (Single Answer)

Which HTML element is used to create a bulleted list?

  1. <ul>
  2. <ol>
  3. <li>
  4. <dl>
Question 7 Multiple Choice (Single Answer)

What is the correct syntax for creating a table in HTML?

  1. <table><thead><tr><th>Heading</th></tr></thead><tbody><tr><td>Data</td></tr></tbody></table>
  2. <table><tr><th>Heading</th></tr><tr><td>Data</td></tr></table>
  3. <table><thead><tr><td>Heading</td></tr></thead><tbody><tr><th>Data</th></tr></tbody></table>
  4. <table><tr><td>Heading</td></tr><tr><td>Data</td></tr></table>
Question 8 Multiple Choice (Single Answer)

Which HTML element is used to create a form?

  1. <form>
  2. <input>
  3. <button>
  4. <label>
Question 9 Multiple Choice (Single Answer)

What is the purpose of the <style> tag in HTML?

  1. To define the structure of the web page
  2. To provide styling information for the web page
  3. To create a link to an external style sheet
  4. To insert an image into the web page
Question 10 Multiple Choice (Single Answer)

Which HTML attribute is used to specify the width of an image?

  1. width
  2. height
  3. src
  4. alt
Question 11 Multiple Choice (Single Answer)

What is the purpose of the <script> tag in HTML?

  1. To define the structure of the web page
  2. To provide styling information for the web page
  3. To include JavaScript code into the web page
  4. To insert an image into the web page
Question 12 Multiple Choice (Single Answer)

Which HTML element is used to create a horizontal line?

  1. <hr>

  2. <p>
Question 13 Multiple Choice (Single Answer)

What is the correct syntax for creating a link to another web page in HTML?

  1. <a href="https://example.com">Link Text</a>
  2. <a src="https://example.com">Link Text</a>
  3. <a target="https://example.com">Link Text</a>
  4. <a title="https://example.com">Link Text</a>
Question 14 Multiple Choice (Single Answer)

Which HTML element is used to create a paragraph?

  1. <p>
  2. <h1>
Question 15 Multiple Choice (Single Answer)

What is the purpose of the <title> tag in HTML?

  1. To define the structure of the web page
  2. To provide styling information for the web page
  3. To specify the title of the web page
  4. To insert an image into the web page