My reading notes
Why is it important to use semantic elements in our HTML?
How many levels of headings are there in HTML?
<h1>
is your main heading all others <h2>
, <h3>
, <h4>
, <h5>
, <h6>
are subheadings.What are some uses for the <sup>
and <sub>
elements?
superscript can be used for dates 2nd
subscripts are used for cool stuff like this Hi F r i e n d
When using the element, what attribute must be added to provide the full expansion of the term?
title=
What are ways we can apply CSS to our HTML?
<style>
element in html directly or create a separate file as a .css
and insert it with the <link>
element.Why should we avoid using inline styles?
1.
h2 {
color: black;
padding: 5px;
}
h2
is your selector color: black;
paddding: 5px;
List 4 types of JavaScript operators.
=
, +
, ===
, -
, *
Describe a real world Problem you could solve with a Function.
What is the use of an else if?
List 3 different types of comparison operators.
===
, !===
, <
, >
What is the difference between the logical operator &&
and ||
?
&&
-AND; they all have to evaluate to true||
-OR; one or more evaluate to true