NEW
Font size
WorksheetsCodeHS Div & Spans
Total questions: 20
Worksheet time: 11mins
What is the function of the div tag?
To define a section of an HTML page
To group a block of elements together to format them with CSS
To efficiently apply the same style to several different elements
All of the above
The <span> tag.........
is used to group inline-elements in a document.
provides no visual change by itself
provides a way to add a hook to a part of a text or a part of a document.
All the above
True or False: By default, browsers always place a line break before and after the <div> element.
True
False
p {color: red;}
Which of these selects all page elements?
#
.
*
&
If you wanted to select both h2 and h4 elements to change the font style to italic, which code would you use?
.h2 {font-style: italic;}
h2 h4 {font-style: italic;}
h2 + h4 {font-style: italic;}
h2 & h4 {font-style: italic;}
if you wanted to select the sibling h4 tag after an h2 tag, what code would you selectj?
h2 then h4 {font-style: italic;}
h2 + h4 {font-style: italic;}
h2, h4 {font-style: italic;}
h2 after h4 {font-style: italic;}
