reading-notes

My reading notes


Project maintained by brandomoki Hosted on GitHub Pages — Theme by mattgraham

Basics of HTML, CSS and JS

  1. Why is it important to use semantic elements in our HTML?

    • Semantic element are used to give meaning to the text.
  2. How many levels of headings are there in HTML?

    • There are 6 levels of heading. <h1> is your main heading all others <h2>, <h3>, <h4>, <h5>, <h6> are subheadings.
  3. 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

  4. When using the element, what attribute must be added to provide the full expansion of the term?

    • it must have a title=

Learn CSS

  1. What are ways we can apply CSS to our HTML?

    • You can do it internal or external. Insert <style> element in html directly or create a separate file as a .css and insert it with the <link> element.
  2. Why should we avoid using inline styles?

    • We should avoid this because it’s just messy.

1.

  h2 {
     color: black;
     padding: 5px;
   }
    color: black;
    paddding: 5px;

Learn JS

  1. What data type is a sequence of text enclosed in single quote marks?
    • This is called a string
  2. List 4 types of JavaScript operators.

    • =, +, ===, -, *
  3. Describe a real world Problem you could solve with a Function.

    • Functions can be used when you need info from the user or can be used to perform equations
  1. An if statement checks a __ and if it evaluates to ___, then the code block will execute.
    • variable and true
  2. What is the use of an else if?

    • when we need more outcomes
  3. List 3 different types of comparison operators.

    • ===, !===, <, >
  4. What is the difference between the logical operator && and ||?

    • &&-AND; they all have to evaluate to true
    • ||-OR; one or more evaluate to true