HTML and CSS Exam Solved 2024
<div id="text"> Links </div> is a rule which can be applied how many times? -
ANSWER-Once
<div id="text"><p><b>Hello World</b> My name is Mrs.Cullen</p></div> Looking at the
tags above which tag is the parent and which are the child tags. - ANSWER-Parent
Tag= #text
Child tags= <p> <b>
<div id="text">Hello World</div> is a rule for (a)... - ANSWER-div/box
<span class="green"> Text Here </span> is a rule for: - ANSWER-Text
<span class="green">Text Here</span> is a rule which can be applied how many
times? - ANSWER-Unlimited
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>
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? - ANSWER-
Float: left or Float: Right
h1, a, or nav (header, footer) represents a rule for (an): - ANSWER-Already pre defined
tag on the web (web knows them)
If you have three divs which you want to be place next to each other and each div has a
left and a right margin of 6% provide the max width of each div (the width must be the
same for all divs.) - ANSWER-Each div would have a width of 21%
In what section do you "build" your divs (apply html)? - ANSWER-<body> </body>
List the four layers of the box model (from inside to out) - ANSWER-Content, padding,
border, and margin
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.? - ANSWER-Clear: both;
Prove the correct way to format a div with the id "text", making it 300px wide and 400px
tall with an orange background - ANSWER-#text
<div id="text"> Links </div> is a rule which can be applied how many times? -
ANSWER-Once
<div id="text"><p><b>Hello World</b> My name is Mrs.Cullen</p></div> Looking at the
tags above which tag is the parent and which are the child tags. - ANSWER-Parent
Tag= #text
Child tags= <p> <b>
<div id="text">Hello World</div> is a rule for (a)... - ANSWER-div/box
<span class="green"> Text Here </span> is a rule for: - ANSWER-Text
<span class="green">Text Here</span> is a rule which can be applied how many
times? - ANSWER-Unlimited
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>
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? - ANSWER-
Float: left or Float: Right
h1, a, or nav (header, footer) represents a rule for (an): - ANSWER-Already pre defined
tag on the web (web knows them)
If you have three divs which you want to be place next to each other and each div has a
left and a right margin of 6% provide the max width of each div (the width must be the
same for all divs.) - ANSWER-Each div would have a width of 21%
In what section do you "build" your divs (apply html)? - ANSWER-<body> </body>
List the four layers of the box model (from inside to out) - ANSWER-Content, padding,
border, and margin
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.? - ANSWER-Clear: both;
Prove the correct way to format a div with the id "text", making it 300px wide and 400px
tall with an orange background - ANSWER-#text