NEW
Font size
WorksheetsWD: Chapter 4 Exam
Total questions: 20
Worksheet time: 10mins
The < div > element:
divides your web page into 3 equal parts
divides numbers in math equations
makes all of your elements bold
marks a "division" in your web page
The _________ element can be used to identify a block section and make sure the content appears on its own lines, but it does not add any extra styling by itself.
< blockquote >
< div >
< span >
< strong >
What attribute does not do anything other than put a unique label on the container?
The “identifier” attribute
The “target” attribute
The “id” attribute
The “label” attribute
Which of the following is NOT a use for a Comment?
to help identify the ending tags that go with a particular attribute
write notes to yourself in your code that wouldn’t be displayed in the browser
write descriptive text to help someone else understand a section of code
bold certain areas of text
What is used to start and end a comment?
"+" tag and end with "-" characters.
"!!!" tag and end with "***" characters.
"< !--" tag and end with "-- >" characters.
You can type pretty much anything inside a comment except:
asterisks (***)
pound signs (###)
double dashes (--)
numbers
What is the purpose of a “character reference” in HTML?
Both of these are true
To add symbols to your visible content such as < or > that have special meaning in HTML
Neither of these is true
To add symbols to your visible content that do not exist on the keyboard
Which of the following is a correctly formatted character reference for the greater than (>) angle bracket?
gt;
&>;
>
& gt;
What kind of area do you normally find at the bottom of a web page?
A main content area
A header
A footer
A navigation sidebar
Which of the following elements are block elements?
All of these are block elements
< em >
< strong >
<p>
Block elements can contain:
Only inline elements
Only paragraphs
Both other inline and other block elements
Only other block elements
This kind of element does not add any space around the data within the element; it will just control how the data is displayed.
Inline element
Block element
New line element
Bold element
Which of the following elements inline elements doesn’t do anything by itself, but can mark things for later styling?
< div >
< br />
< span >
< em >
If your web site contains ____________, searching for problems and errors is much easier and faster.
organized lines
new code
specific code
clean code
When you set code inside other code, in an orderly fashion, it is called:
Select one:
Nesting
Orderly code
Inside code
Organized lines
Which of the following examples shows correctly written elements with one nested inside another?
< body >< div >< /body >< /div >
< body >< /body >< div >< /div >
All of these will work just fine
< body >< div >< /div >< / body >
Which of the following examples shows an opening tag and “id” attribute with a value equal to “Banner”?
< div id="Banner">
< div >id=Banner< /div>
< id value="Banner" >
< div Banner="id">
To create a list where the ordering is important, what element would you use?
The < li >element
The < ul > element
The < ol > element
The < blockquote > element
What element is used to mark the text for each entry in the list?
The < ul > element
The < blockquote > element
The < li >element
The < ol > element
Use this type of list when no item is more important than another, or you don’t want the items to be numbered.
The < li > element
The < blockquote > element
The < ol > element
The < ul > element
