HTML and CSS Exam 2026 Questions
and Answers
What does html stand for? - Correct answer-Hyper Text Markup Language
Provide an example of an an HTML 5 tag and the purpose of the tag - Correct
answer-<footer></footer> , it simplified <div id= "footer"> which most coders
were using anyways, and it provided a specific close tag
What is the purpose of an HTML comment? - Correct answer-For the coder to be
able to write notes to themselves of other coders explaining their code. The
browser does not show these comments to the viewer of the site.
Before CSS how were HTML tags formatted? Where was the formatting applied? -
Correct answer-HTML tags were formatted using attributes which were placed in
the open tag
EX: <p color="red">text</p>
In what section do you "build" your divs (apply html)? - Correct answer-<body>
</body>
©COPYRIGHT 2025, ALL RIGHTS RESERVED 1
, What do you include in the html tag to let the browser know that you are writing in
version 5 of HTML? - Correct answer-<!DOCTYPE html>
What is the tag for an image? - Correct answer-<img>
What is the tag for a link? - Correct answer-<a> </a>
What three tags are required in every .html document? - Correct answer-<html>,
<head>, and <body>.
Show a start tag and end tag in html (use paragraph for an example) - Correct
answer-<p> and </p>
<span class="green"> Text Here </span> is a rule for: - Correct answer-Text
h1, a, or nav (header, footer) represents a rule for (an): - Correct answer-Already
pre defined tag on the web (web knows them)
<span class="green">Text Here</span> is a rule which can be applied how many
times? - Correct answer-Unlimited
<div id="text"> Links </div> is a rule which can be applied how many times? -
Correct answer-Once
<div id="text">Hello World</div> is a rule for (a)... - Correct answer-div/box
©COPYRIGHT 2025, ALL RIGHTS RESERVED 2
and Answers
What does html stand for? - Correct answer-Hyper Text Markup Language
Provide an example of an an HTML 5 tag and the purpose of the tag - Correct
answer-<footer></footer> , it simplified <div id= "footer"> which most coders
were using anyways, and it provided a specific close tag
What is the purpose of an HTML comment? - Correct answer-For the coder to be
able to write notes to themselves of other coders explaining their code. The
browser does not show these comments to the viewer of the site.
Before CSS how were HTML tags formatted? Where was the formatting applied? -
Correct answer-HTML tags were formatted using attributes which were placed in
the open tag
EX: <p color="red">text</p>
In what section do you "build" your divs (apply html)? - Correct answer-<body>
</body>
©COPYRIGHT 2025, ALL RIGHTS RESERVED 1
, What do you include in the html tag to let the browser know that you are writing in
version 5 of HTML? - Correct answer-<!DOCTYPE html>
What is the tag for an image? - Correct answer-<img>
What is the tag for a link? - Correct answer-<a> </a>
What three tags are required in every .html document? - Correct answer-<html>,
<head>, and <body>.
Show a start tag and end tag in html (use paragraph for an example) - Correct
answer-<p> and </p>
<span class="green"> Text Here </span> is a rule for: - Correct answer-Text
h1, a, or nav (header, footer) represents a rule for (an): - Correct answer-Already
pre defined tag on the web (web knows them)
<span class="green">Text Here</span> is a rule which can be applied how many
times? - Correct answer-Unlimited
<div id="text"> Links </div> is a rule which can be applied how many times? -
Correct answer-Once
<div id="text">Hello World</div> is a rule for (a)... - Correct answer-div/box
©COPYRIGHT 2025, ALL RIGHTS RESERVED 2