reading-notes

My reading notes


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

HTML Links, JS Functions, and Intro to CSS Layout

Learn HTML

  1. To create a basic link, we wrap text or other content inside what element?

    • <a>
  2. The href attribute contains what information?

    • the web address
  3. What are some ways we can ensure links on our pages are accessible to all readers?

    • Use link text to ensure clarity and searchability.

CSS Layout

  1. What is meant by “normal flow”?

    • Normal Flow is the default layout for CSS. Sets up a basic page that works on most browsers.
  2. What are a few differences between block-level and inline elements?

    • Inline elements may only contain data and other inline elements. Block-level elements may contain inline elements and (sometimes) other block-level elements
  3. ___ positioning is the default for every html element.
    • Static
  4. Name a few advantages to using absolute positioning on an element.

    • This can be used to creat popups, control menus, ui features that can be dragged and dropped.
  5. What is a key difference between fixed positioning and absolute positioning?

    • The difference is that it is fixed in place and doesnt move even if you scroll.

Learn JS

  1. Describe the difference between a function declaration and a function invocation.

    • Function Declaration when you introduce an identifier that designates a function

    • Function Invocation is when you call a function

  2. What is the difference between a parameter and an argument?

    • Parameters are more like place holders. Arguments is a value passed to the function