What tag tells the browser that the document is written in HTML5?
<!DOCTYPE html>
What tag is used for the largest heading?
<h1>
What tag creates a bulleted list?
<ul>
What tag is used to create a hyperlink?
<a>
What tag contains the main visible content of a webpage?
<body>
Which tag contains metadata and the page title?
<head>
What tag makes text bold?
<strong>
What tag is used to create a numbered list?
<ol>
Which attribute specifies the destination of a link?
href
What color would be displayed if an element had this style:
style="color: #0000FF;" ?
Blue
Which tag wraps all visible and non-visible content of a webpage?
<html>
Which tag is used to create a paragraph?
<p>
What tag is used for each item inside a list?
<li>
What attribute is required in the <img> tag to describe the image?
alt
In the color value rgb(255, 0, 0), what color is produced and why?
Red, because 255 is the maximum value for red, while green and blue are 0.
Which HTML tag controls the text that appears in the browser tab?
<title>
What is the smallest heading tag available?
<h6>
What is the difference between <ul> and <ol>?
<ul> is unordered (bullets), <ol> is ordered (numbered)
Which attribute in the <img> tag specifies the image file location?
src
If text is styled with color: white; and the background is also white, what usability issue occurs?
The text becomes invisible due to lack of contrast, harming readability and accessibility.
What is the difference between <th> and <td> in a table, and when should each be used?
<th> is used for header cells (usually bold and centered by default), while <td> is used for regular data cells.
How would you change the text color of a paragraph to blue using the style attribute?
<p style="color: blue;">
What would happen if you forgot the quotation marks around a style attribute value?
The browser could misinterpret where the attribute value ends, which may prevent the style from applying properly.
If you wrap an <img> tag inside an <a> tag, what happens?
The image becomes clickable and acts as a link.
If a student writes color: #GG0000;, what is the problem?
Hex color codes can only use digits 0ā9 and letters AāF. āGā is invalid.