HTML Fundamentals
Test your knowledge on the basics of HTML, the foundation of web development.
Questions
What does HTML stand for?
- Hypertext Markup Language
- Hypertext Modeling Language
- Hypertext Machine Language
- Hypertext Markup Link
Which HTML element is used to define the main content of a web page?
- <head>
- <body>
- <title>
- <html>
What is the correct syntax for creating a heading in HTML?
- <h1>Heading</h1>
- <heading>Heading</heading>
- <h>Heading</h>
- <head>Heading</head>
Which HTML attribute is used to specify the link destination of an anchor (<a>) element?
- href
- src
- alt
- title
What is the purpose of the <meta> tag in HTML?
- To define the title of the web page
- To provide metadata about the web page
- To create a link to another web page
- To insert an image into the web page
Which HTML element is used to create a bulleted list?
- <ul>
- <ol>
- <li>
- <dl>
What is the correct syntax for creating a table in HTML?
- <table><thead><tr><th>Heading</th></tr></thead><tbody><tr><td>Data</td></tr></tbody></table>
- <table><tr><th>Heading</th></tr><tr><td>Data</td></tr></table>
- <table><thead><tr><td>Heading</td></tr></thead><tbody><tr><th>Data</th></tr></tbody></table>
- <table><tr><td>Heading</td></tr><tr><td>Data</td></tr></table>
Which HTML element is used to create a form?
- <form>
- <input>
- <button>
- <label>
What is the purpose of the <style> tag in HTML?
- To define the structure of the web page
- To provide styling information for the web page
- To create a link to an external style sheet
- To insert an image into the web page
Which HTML attribute is used to specify the width of an image?
- width
- height
- src
- alt
What is the purpose of the <script> tag in HTML?
- To define the structure of the web page
- To provide styling information for the web page
- To include JavaScript code into the web page
- To insert an image into the web page
Which HTML element is used to create a horizontal line?
- <hr>
-
- <p>
What is the correct syntax for creating a link to another web page in HTML?
- <a href="https://example.com">Link Text</a>
- <a src="https://example.com">Link Text</a>
- <a target="https://example.com">Link Text</a>
- <a title="https://example.com">Link Text</a>
Which HTML element is used to create a paragraph?
- <p>
- <h1>
What is the purpose of the <title> tag in HTML?
- To define the structure of the web page
- To provide styling information for the web page
- To specify the title of the web page
- To insert an image into the web page