ANSWERS
For each block element, the "box model" includes, content, padding, margin, and
border. - answer- True
p.169
To calculate the height of a box when using the box model, you add the height of the
content area to the sum of the heights of the ______________________________. -
answer- top and bottom borders, top and bottom margins, and top and bottom
padding
What does the keyword auto mean in the code below?
margin: 0 auto; - answer- to center the element horizontally within the containing
block
Which CSS property specifies a relative or absolute URL that points to an image to
be used as a background? - answer- background-image
Which of the following can be set for a border in CSS3? - answer- width, style, and
color
Which of the following is NOT one of the ways that you can specify a color in CSS? -
answer- color: getColor("red");
If two CSS rules conflict, which of the following rules overrides the other rule? -
answer- the rule marked as !important in a web page
Which of the following units of measurement is equal to the font size for the current
font? - answer- an em
Which of the following selectors is most specific? - answer- #nav
When you use an external style sheet with an HTML document, you get all but one
of the benefits that follow. Which one is it? - answer- Your CSS files are easy to
create and maintain
HTML elements contained inside of other elements are considered to be
_____________. - answer- nested
The following HTML code is properly arranged according to HTML specifications and
will not cause problems with rendering the HTML page it is contained in:
<p>Some content in a paragraph </i>with some italics<i>.</p> - answer- False
If a CSS file contains styles for an id, what character should precede the name of the
id? - answer- pound sign (#)
, It is important to use whitespace for clarity of your code, but do not overdo it, as it will
increase the size of the actual HTML file. - answer- True
pg.53
HTML elements that have no content or closing tag are considered ________ tags. -
answer- empty
What file extension is given to a file that is only used to control the format of a web
page? - answer- .css
CSS is used to define the structure and content of a web page. - answer- False
pg 15
Which of the following is an acronym for a technique that helps web sites rank higher
in search engine results? - answer- SEO
Which of the following is NOT a web browser? - answer- Yahoo
The Mozilla Corporation publishes a web browser named _____________. - answer-
Firefox
Which of the following is an attribute that can be used in ordered list element (ol) to
continue the numbering from one list to another? - answer- start
Which HTML element is used to create a list item for an unordered list? - answer- li
To link to placeholders on the same page as the links, you can code the
placeholders ____________________. - answer- as <a> elements with id attributes
Which attribute of the <a> element is a description that is displayed as a tooltip? -
answer- title
Which HTML element is used to create a list item for an ordered list? - answer- li
Which of the following should you do to provide accessibility to img elements with
useful content? - answer- Code an alt attribute that describes the image.
Headings and sections are the most common content of a web page. - answer-
False
pg 90 - headings and paragraphs.
By default, the <br> tag _________________. - answer- starts a new line of text
What character entity is created by the character? - answer- a space
Which HTML heading element creates a heading that is 150% of the base font size?
- answer- h2