adam.corkett
Quiz by , created more than 1 year ago

HTML and CSS Quiz on CSS Box Model and Positioning Quiz, created by adam.corkett on 15/05/2013.

492
0
1
adam.corkett
Created by adam.corkett over 11 years ago
Close

CSS Box Model and Positioning Quiz

Question 1 of 10

1

In a HTML web page an identifier is:

Select one of the following:

  • A unique reference to an HTML element.

  • A reference to multiple instances of an HTML element.

  • A unique reference to an HTML page.

Explanation

Question 2 of 10

1

A class can be used to:

Select one or more of the following:

  • Style numerous instances of an HTML tag

  • Style any element in an HTML page labelled with the class name

  • Refer to a specific instance of an element.

Explanation

Question 3 of 10

1

What is meant by a rule?

Select one of the following:

  • A measurement of an element.

  • A style definition which references a tag, class or identifier.

Explanation

Question 4 of 10

1

Which is the correct selector for an ID?

Select one of the following:

  • .redText{

    }

  • #columnLeft{

    }

  • body{

    }

Explanation

Question 5 of 10

1

Which is the correct selector for a class?

Select one of the following:

  • #contentRight{

    }

  • body{

    }

  • .redText{

    }

Explanation

Question 6 of 10

1

Which type of positioning would best be used to place an element in a permanent position on an HTML page?

Select one of the following:

  • Absolute

  • Relative

  • Fixed

Explanation

Question 7 of 10

1

Which of the statements best describes the float property of CSS?

Select one of the following:

  • A floated element is placed next to the previous HTML element if there is enough room, otherwise it is placed underneath.

  • A floated element is positioned at the side of the screen you tell it to, it will stand over the top of other elements sharing the same space.

Explanation

Question 8 of 10

1

Which is the correct description of the box model?

Select one of the following:

  • The margin is added to the element, followed by the padding, followed by the border - this affects the overall actual size of the element.

  • The padding is added to the element, followed by the border, followed by the margin - this affects the overall actual size of the element.

Explanation

Question 9 of 10

1

What is meant by document flow

Select one of the following:

  • The way the text flows in the page

  • The way the tags are ordered originally in the HTML

  • The way the text flows within a tag

Explanation

Question 10 of 10

1

What is meant by a compound selector?

Select one of the following:

  • A HTML element that is embedded within another element.

  • A complicated reference to an element in a page.

Explanation