Web Dev Course
How do you style an element with an attribute id="firstname" id=firstname .firstname *firstname #firstname
#firstname
How do you select an element with an attribute class="muted" muted #muted .muted *muted
.muted
Which of these anchor tags is valid HTML? Question 6 options: <a src="https://www.google.com" target="_blank">Google Search</a> <a href="https://www.google.com" target="_blank" text="Google Search> None of these are valid <a href="https://www.google.com" target="_blank">Google Search</a>
<a href="https://www.google.com" target="_blank">Google Search</a>
When creating a form, which of the following snippets will create a radio button? Question 1 options: <button id="color" type="radio" value="blue">Blue</button> <option value="blue" name="color">Blue</option> <input type="radio" name="color" value="blue">Blue <radio name="color" value="blue">Blue</radio>
<input type="radio" name="color" value="blue">Blue
Which of these snippets can add an external style sheet to a web page? <style src="styles.css"> <stylesheet>styles.css</stylesheet> <link rel="stylesheet" href="styles.css" type="text/css">
<link rel="stylesheet" href="styles.css" type="text/css">
Which of these elements are related to the <table> element? Question 3 options: <row> <tr> <td> <head> <tfoot>
<tr> <td> <tfoot>
A closing tag, denoted by <\*>, is required for every HTML element. (T or F)
False
An inline element will automatically push additional content to the next line in an HTML document. (T or F)
False
The margin property adds space on the inside of an element. (T or F)
False
How do you add multiple styles to a class attribute? Separate them with semi-colons An element can only have one class style Separate them with spaces Separate them with commas
Separate them with spaces
An anchor <a> element can reference a specific location within the same page. (True or False)
True
The id attribute of elements should be unique, but it is not required to be. (T or F)
True
The padding property adds space to the inside of the element. (T or F)
True
The viewport meta tag is used to scale content to a variety of screen sizes, like mobile devices. (T or F)
True
To declare styles accessible to only a single page, place them in a <style> element in the <head> (T or F)
True
You can make an image a link by wrapping a <img> element inside an <a> element. (T or F)
True
Consider the following HTML:<p class="intro">Welcome to the program!</p> Which of the following snippets is an attribute? </p> <p> class Welcome to the program!
class
How do you select all the paragraph elements inside a <div>? div > p div.p div+p div p
div p
Which CSS property changes the font of an element? font-weight font-type font-family font-size
font-family
Which CSS property controls text size? text-style font-size text-size size
font-size
Which syntax is correct? p ( color: black; ) { p color: black } p: color=black; p { color: black; }
p { color: black; }