HTML and CSS Exam Questions And Answers
|Latest 2025 | Guaranteed Pass.
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)
1|Page