Docsity

HTML and CSS Exam. 2026, Exams of Advanced Education

Toggle sidebar
bg1
1 | P a g e
HTML and CSS Exam.
Save
What does html stand for? - ANSWERHyper 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? - ANSWERFor 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? - ANSWERHTML 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>
pf3
pf4

Partial preview of the text

Download HTML and CSS Exam. 2026 and more Exams Advanced Education in PDF only on Docsity!

HTML and CSS Exam.

Save What does html stand for? - ANSWERHyper Text Markup Language Provide an example of an an HTML 5 tag and the purpose of the tag - ANSWER , it simplified which most coders were using anyways, and it provided a specific close tag What is the purpose of an HTML comment? - ANSWERFor 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? - ANSWERHTML tags were formatted using attributes which were placed in the open tag EX:

text

In what section do you "build" your divs (apply html)? - ANSWER

What do you include in the html tag to let the browser know that you are writing in version 5 of HTML? - ANSWER What is the tag for an image? - ANSWER

What is the tag for a link? - ANSWER What three tags are required in every .html document? - ANSWER, , and . Show a start tag and end tag in html (use paragraph for an example) - ANSWER

and

Text Here is a rule for: - ANSWERText h1, a, or nav (header, footer) represents a rule for (an): - ANSWERAlready pre defined tag on the web (web knows them) Text Here is a rule which can be applied how many times? - ANSWERUnlimited Links is a rule which can be applied how many times? - ANSWEROnce Hello World is a rule for (a)... - ANSWERdiv/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 { margin-top: 20px; }

  1. Internal (listen to second, ex:
  2. External (list to third, list the rules in another file, ex: p {color: green;}
  3. Browser default (list to fourth, the rules from the Web) Order in which the browser will listen to it: (Closest to the tag) List the four layers of the box model (from inside to out) - ANSWERContent, padding, border, and margin When you want to move a div what rule do you apply? - ANSWERmargin (space on the outside of the div) By default divs are trained to pile on top of each other especially if they are 100% in width. If you have two divs that you want to sit next to each other that in total equals less than 100% of the body what rule would we apply to the smaller divs? - ANSWERFloat: left or Float: Right Once you insert smaller divs into your page (less than 100% width) the larger divs stop stacking appropriately. What rule do we apply to the larger divs to make the larger divs acknowledge the smaller divs.? - ANSWERClear: both; What is the name of the stylesheet which we apply to our page to make our page to make our page ignore all the default CSS rules which are applied by all browsers? - ANSWERreset.css