HTML AND CSS EXAM 2025 PRACTICE QUESTIONS
AND CORRECT ANSWERS/ LATEST 2025
What does html stand for? - (answer)Hyper Text Markup Language
Provide an example of an an HTML 5 tag and the purpose of the tag -
(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? - (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? -
(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)? - (answer)<body> </body>
What do you include in the html tag to let the browser know that you are writing
in version 5 of HTML? - (answer)<!DOCTYPE html>
What is the tag for an image? - (answer)<img>
, What is the tag for a link? - (answer)<a> </a>
What three tags are required in every .html document? - (answer)<html>,
<head>, and <body>.
Show a start tag and end tag in html (use paragraph for an example) -
(answer)<p> and </p>
<span class="green"> Text Here </span> is a rule for: - (answer)Text
h1, a, or nav (header, footer) represents a rule for (an): - (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? - (answer)Unlimited
<div id="text"> Links </div> is a rule which can be applied how many times? -
(answer)Once
<div id="text">Hello World</div> is a rule for (a)... - (answer)div/box
Provide the CSS for moving the div "image" away from the div "content" by 20
pixels THEN, move the text away from the edge of the "content" div by 15 pixels.
Place these rules all within in the "content" tag. - (answer)#content
AND CORRECT ANSWERS/ LATEST 2025
What does html stand for? - (answer)Hyper Text Markup Language
Provide an example of an an HTML 5 tag and the purpose of the tag -
(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? - (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? -
(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)? - (answer)<body> </body>
What do you include in the html tag to let the browser know that you are writing
in version 5 of HTML? - (answer)<!DOCTYPE html>
What is the tag for an image? - (answer)<img>
, What is the tag for a link? - (answer)<a> </a>
What three tags are required in every .html document? - (answer)<html>,
<head>, and <body>.
Show a start tag and end tag in html (use paragraph for an example) -
(answer)<p> and </p>
<span class="green"> Text Here </span> is a rule for: - (answer)Text
h1, a, or nav (header, footer) represents a rule for (an): - (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? - (answer)Unlimited
<div id="text"> Links </div> is a rule which can be applied how many times? -
(answer)Once
<div id="text">Hello World</div> is a rule for (a)... - (answer)div/box
Provide the CSS for moving the div "image" away from the div "content" by 20
pixels THEN, move the text away from the edge of the "content" div by 15 pixels.
Place these rules all within in the "content" tag. - (answer)#content