#Prework Day 2 Chapters 3+4
- There are three main types of lists in HTML: ordered, unordered, and definition. What are their differences?
- An ordered list (
<ol>
) is numbered, an unordered list(<ul>
) begin with a bullet point, and a definition (<dl>
) is a set of terms (with each's definition). The ordered and unordered lists can contain<li>
items, while the definition lists contain<dt>
(contains term being defined) and<dd>
(contains the definition) elements.
- What is the basic structure of an element used to link to another website?
<a href = "link URL">
Text describing link</a>
- opening link tag, text the user clicks on, closing link tag
- What attribute should you include in a link to open a new tab when the link is clicked?
- the target attribute: target="_blank"> / as well as informing the user the link will open in a new window
- How do you link to a specific part of the same page?
- first you need you identify the points in the page that the link will go to (using the ID attribute that starts with either a letter or an underscore), then you can use the href attribute starting with a # symbol followed by the value of the ID attribute
Chapters 10+11+12
- What is the purpose of CSS?
- CSS controles the rules that specify how the content of an element should appear (called properties)
- What does CSS stand for? What does cascading mean in this case?
- CSS- Cascading Style Sheets/ cascading means that the web page reads and executes properties based on specificity (top to bottom), meaning you can overwrite generic rules with more specific rules
- What is the basic structure of a CSS rule?
- Contains two parts: a selector (or group of selectors) and a declaration containing a property and it's value -
p { color: green;}
- Contains two parts: a selector (or group of selectors) and a declaration containing a property and it's value -
- How do you link a CSS stylesheet to your HTML document?
<link href="name.css" type="text/css" rel="stylesheet">
- What is it useful to use external stylesheets as opposed to using internal CSS?
- We can reuse stylesheets for multiple web pages (DRY method), it gives the ability to alter the appearance of multiple elements at once, and HTML code is easier to read
- Describe what a color hex code is.
- Hex values represent (in order) red, green, and blue colors; written as #000000 (six numbers, each color getting two numbers)
- What are the three parts of an HSL color property?
- Hue (color circle=values 0-360), Saturation (amount of gray in a color, 0%-100%), Lightness (amount of white or black in a color, also represented by percent), can also contain transparency for HSLA property (0-1.0)
- In the world of typeface, what are the three main categories of fonts? What are the differences between them?
- Serif (extra details [serifs] on the ends of the main strokes of the letters), Sans Serif (straight ends to letters, cleaner design), and monospace (every letter is the same width)
- When specifiying font-size, what are the main three units used?
- Pixels (#px, default text size is 16px), Percentages (#%), and EMS (#em)