Week 3 Flashcards
………… is also a percentage value, 0% is black, and 100% is white
Lightness
Add ………… after autoplay=1 to let your video start playing automatically (but
muted)
mute=1
With an ………….., you can change the look of an entire website by changing just one file!
external style sheet
a type selector that if you had two <p> elements that are siblings of an <h1> element, this rule would apply to both
(h1~p{})
General Sibling
An ………… can be used as the target frame for a link
iframe
Defines a set of navigation links
<nav>
</nav>
Defines a header for a document or a section
<header>
</header>
…….. is a degree on the color wheel from 0 to 360. 0 is red, 120 is green, and 240 is blue
Hue
the id selector is used to select more than one unique element!
(T/F)
False
The ………… selects all the HTML elements with the same style definitions
grouping selector
You can let your video start playing automatically when a user visits the page, by adding autoplay=……….. to the YouTube URL.
1
a type selector that targets all elements on the page
Universal selector (*)
a type selector that targets any element whose class attribute has a value of note
Class Selector (.classsname)
Each parameter (red, green, and blue) defines the intensity of the color with a
value between 0 and …………
255
In HTML, a color can be specified using hue, saturation, and lightness (……….) in the
form:
hsl(hue, saturation, lightness)
HSL
HTML has a much wider array of attributes than CSS
(T/F)
False
If you are using CSS, you do not need to write HTML tag
attributes every time
(T/F)
True
The ………. selects HTML elements with a specific class attribute
class selector
………. is a percentage value, 0% means a shade of gray, and 100% is the full color
Saturation
The ……….. element is a container for metadata (data about data)
<head>
</head>
In HTML, a color can be specified using a ………. value in the form: #rrggbb
hexadecimal
To display …………., set all color parameters to ff, like this: #ffffff
white
……… are assigned to properties
Values
Metadata is not displayed
(T/F)
True
To play an audio file in HTML, use the ………. element
<audio>
</audio>
To display ………….., set all color parameters to 0, like this: rgb(0, 0, 0)
black
a type selector that targets the first <p> element after any <h1> element (but not other <p> elements)
(h1+p{})
Adjacent Siblings
The ……………. element allows you to specify alternative video files which the
browser may choose from
<source></source>
In HTML, a color can be specified as an ……………., using this formula:
rgb(red, green, blue)
RGB value
CSS is the acronym for “…………..”
Cascading Style Sheet
………… could be any tag like <h1> or <table> etc
selector
A ………… is a type of attribute of HTML tag
property
The ……… uses the id attribute of an HTML element to select a specific element
id selector
a type selector that targets all element whose id attribute has a value of introduction
(#introduction)
ID selector
The metadata will not be displayed on the page, but are used by browsers (how to display content or reload page), by search engines (keywords), and other web services
(T/F)
True
…………. is the browser window size
Viewport