-
Why is it important to use semantic elements in our HTML?
- We need to make sure that we are using the correct elements, giving our content the correct meaning, function, or appearance.
-
How many levels of headings are there in HTML?
- 6
-
What are some uses for the and elements?
- The element represents a superscript and the element represents a subscript.
-
When using the element, what attribute must be added to provide the full expansion of the term?
- provide a full expansion of the term in plain text on first use, along with the to mark up the abbreviation.
-
What are ways we can apply CSS to our HTML? *
-
Why should we avoid using inline styles? *
-
Review the block of code below and answer the following questions:
- What is representing the selector: h2
- Which components are the CSS declarations: color, padding
- Which components are considered properties: black, 5px
- h2 { color: black; padding: 5px; }
-
What data type is a sequence of text enclosed in single quote marks?
- string
-
List 4 types of JavaScript operators:
- (=) (assignment)
- (+) (addition)
- (-) (subtraction)
- (/) (division)
-
Describe a real world problem you could solve with a function:
- a simple function that takes two numbers as arguments and multiplies them
-
An if statement checks a _______ and if it evaluates to _______ then the code will execute.
- condition, true
-
What is the use of an else if statement?
- It can provide more than two outcomes.
-
List 3 different types of comparison operators:
- (strictly equals) ===
- (strictly not equals) !==
- (less than) <
-
What is the difference between the logical operator && and ||?
- && allows you to chain together multiple expressions so that all of them have to individually evaluate to true for the whole expression to run.
- || allows you to chain together multiple expressions so that one or more of them have to individually evaluate to true for the whole expression to return true.