Skip to content

Instantly share code, notes, and snippets.

@weytani
Last active May 3, 2017 14:45
Show Gist options
  • Save weytani/0f0ada12a9ad6223e423a34c06449ddd to your computer and use it in GitHub Desktop.
Save weytani/0f0ada12a9ad6223e423a34c06449ddd to your computer and use it in GitHub Desktop.
Prework file

Chapters 1 & 2

On a website, what is the purpose of HTML code? To frame webpage elements What is the difference between an element and a tag? tags label elements and act as a point of reference in the code Why do we use attributes in HTML elements? to further define elements and their attribtes or attributes tell us more about elements Describe the purpose of the head, title, and body HTML elements. body - everything insdie this element is shown in the main browser window head - This contains information about the page title - shown in the top of the browser In your browser (Chrome), how do you view the source of a website? right click view page source List five different HTML elements and what they are used for. For example,

is a paragraph element, and it is used to represent a paragraph of text.
to add a line break inside the middle of a paragraph to contain characaters that should be superscript makes words appear as italic


to create break between themes to contain characters that should be subscript What are empty elements? empty elements are predefined and contain no words between tags What is semantic markup? their purpose is to describe the content of your web page more accurately Waht are three new semantic elements introduced in HTML 5? Use page 431 in the book to find more about these new elements. header aside article

Chapters 3 & 4

  1. ordered = numbered unordered = bullet definition = term/definition structure
  2. href + url
  3. target = _blank
  4. #(id) notation

Chapters 10 11 & 12

  1. CSS associates style rules with html elements
  2. Cascading Style Sheets. Cascading signifies precedence rules in the code.
  3. style rules wrapped in an element reference
  4. the selector rel
  5. External allows you to modularize and reuse code
  6. a code that signifies a particular color in red green and blue
  7. hue saturation and lightness
  8. Serif - Has extra details at the end of main strokes Sans-Serif - have straight ends to letters Monospace - Every letter is the same width
  9. pixels percentages EMS

Chapter 7

  1. action attribute
  2. select
  3. submit
  4. fieldset

Chapter 13 & 15

  1. Border - the border separates the edge of one box from another Margin - sits outside the edge of the border Padding - is the space between the border of the box and any content contained within it
  2. top, right, bottom, left
  3. block - start on new line inline - flow inbetween surrounding text
  4. Fixed always stays in the same place. Anything fixed always sits at the front of the z-index
  5. fixed is static. Liquid adjusts based on screen/browser size.

Chapter 5

  1. alt is used to decribe the image incase it isn't visable. Also, webcrawlers.
  2. depends on if the image is declared inside or outside P tag

Chapter 16

1 & 2 reusability across the page instead of a new declartation for every instance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment