CSS Box Model and Positioning Quiz

Description

HTML and CSS Quiz on CSS Box Model and Positioning Quiz, created by adam.corkett on 15/05/2013.
adam.corkett
Quiz by adam.corkett, updated more than 1 year ago
adam.corkett
Created by adam.corkett almost 11 years ago
474
0

Resource summary

Question 1

Question
In a HTML web page an identifier is:
Answer
  • A unique reference to an HTML element.
  • A reference to multiple instances of an HTML element.
  • A unique reference to an HTML page.

Question 2

Question
A class can be used to:
Answer
  • 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.

Question 3

Question
What is meant by a rule?
Answer
  • A measurement of an element.
  • A style definition which references a tag, class or identifier.

Question 4

Question
Which is the correct selector for an ID?
Answer
  • .redText{ }
  • #columnLeft{ }
  • body{ }

Question 5

Question
Which is the correct selector for a class?
Answer
  • #contentRight{ }
  • body{ }
  • .redText{ }

Question 6

Question
Which type of positioning would best be used to place an element in a permanent position on an HTML page?
Answer
  • Absolute
  • Relative
  • Fixed

Question 7

Question
Which of the statements best describes the float property of CSS?
Answer
  • 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.

Question 8

Question
Which is the correct description of the box model?
Answer
  • 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.

Question 9

Question
What is meant by document flow
Answer
  • 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

Question 10

Question
What is meant by a compound selector?
Answer
  • A HTML element that is embedded within another element.
  • A complicated reference to an element in a page.
Show full summary Hide full summary

Similar

An-tAdh le Padraig o Conaire
l.watters97
Changing Urban Environments
John Ditchburn
PHYSICS P1 1
x_clairey_x
Girls' and Boys' Education - A Mind Map
nikkifulps
CHEMISTRY C1 5
x_clairey_x
CPA Exam Sample Questions Pt. 1
nedtuohy
Veterinary Nursing Instruments
rowan.bray
Continents & Oceans
Thomas Yoachim
CCNA Security Final Exam
Maikel Degrande
Literary Techniques in Othello
Rebecca Hunter