What tag creates a level 1 heading?
<h1>
What tag creates a bulleted list?
<ul>
What symbol is used to start a CSS rule block?
Hint: You use this symbol for any type of CSS rule BLOCK whether it's class, id or regular selector.
{
Which selector targets all <h1> elements?
h1
Which has higher priority: tag or class?
class
What HTML tag creates a clickable hyperlink?
<a>
What tag creates a numbered list?
<ol>
What is wrong with this?
CSS uses : not =
Correct:
color: red;
Write the CSS selector that targets an element with id="header".
#header
What attribute is required to make a link go somewhere?
href
What tag creates each item inside a list?
<li>
Write a CSS rule that makes all level 2 headings 18px.
Example: h2{font−size:18px;}
Which selector targets class="box"?
.box
Given:
What color?
Green
What is the purpose of the alt attribute in an image?
Give me 2 examples.
Provides alternative text for (1) accessibility (2) if image doesn’t load
What tag creates a table row?
<tr>
Which selector has the LOWEST priority: ID, Class, or Tag? Explain why.
Tag selector has the lowest priority. Specificity order: element/tag selectors < class selectors < ID selectors.
Can a class and ID be used on multiple elements?
yes for the class, no for the ID
Given:
What color?
Red
The following code does NOT display correctly.
Identify ALL errors and rewrite it correctly.
Missing 1 in <\h1>
Missing closing </p>
First <li> missing </li>
Third <li> missing </li>
What is the difference between <th> and <td>?
<th> = header cell
<td> = regular data cell
Given these CSS rules:
p{color:green;font−family:′LucidaConsole′;}
.info{color:orange;font−family:Helvetica;}
#announcement{color:red;}
For the HTML <p class="info" id="announcement">Update</p>
What is color and font-family of the text?
Color: red (ID rule wins)
Font-family: Helvetica (class rule wins)
Given the following CSS:
What color will this be?
Red
#main.highlight has higher specificity than just #main, .highlight, or p, because it combines an ID and a class selector.
Which of the following best describes the difference between the domain and path of a URL?
The domain specifies where the browser’s request should be sent.
The path specifies exactly what file is being requested.