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
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller CLOUND. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $9.99. You're not tied to anything after your purchase.