reading-notes

HTML basics

HTML Introduction

HTML links

Creating Hyperlinks

CSS normal flow

Normal Flow

CSS positioning

Positioning

JavaScript basics

JavaScript

JavaScript functions

Functions

Pair programming

Pair Programming

The <a> element.

#2: The href attribute contains what information?

The destination URL that the link should go to.

Using descriptive link text, ensuring the link is keyboard accessible, and using appropriate link contrast.

#4: What is meant by “normal flow”?

Normal flow is the default layout behavior of elements on a web page, where elements are laid out in the order they appear in the HTML document.

#5: What are a few differences between block-level and inline elements?

Block-level elements take up the full width of their container, while inline elements only take up as much width as their content. Block-level elements start on a new line, while inline elements do not.

#6: ___ positioning is the default for every HTML element.

Static positioning.

#7: Name a few advantages to using absolute positioning on an element.

Absolute positioning allows elements to be placed precisely on the page, it can be used to create complex layouts, and it can be used to layer elements on top of each other.

#8: What is a key difference between fixed positioning and absolute positioning?

Fixed positioning is relative to the viewport, while absolute positioning is relative to the nearest positioned ancestor.

#9: Describe the difference between a function declaration and a function invocation.

A function declaration is the creation of a function, while a function invocation is the actual execution of a function.

#10: What is the difference between a parameter and an argument?

A parameter is a variable listed in the function definition, while an argument is the actual value passed to the function when it is called.

#11: Pick 2 benefits to pair programming and reflect on how these benefits could help you on your coding journey.

Pair programming can enhance code quality and learning by enabling mistake identification and facilitating collaboration and discussion.