reading-notes

Reading Notes

View the Project on GitHub simon-panek/reading-notes

Code 102: Class 4 - Structure of a Website HTML


Read: 04 HTML & CSS Textbook Chapter 18

Process and Design

Visual Hierarchy most users do not read entire web pages. Using contrast can help focus a users attention.

Grouping and Similarity visually grouping items of related content through similar element styles

Navigation a good design allows users to better find and understand your content

Read: 04 HTML & CSS Textbook Chapter 1

Structure

HTML (Hypertext Markup Language) describes the structure of a webpage

HTML Elements *usually made up of two tags inside angle brackets <example></example>

Attributes provide more information and instruciton in a tag, consist of two parts: name and value seperated by “=”

List of Tags

View Source in browser allows you to see the code for the current page, this can be useful in figuring out how to achieve certain structures

Read: 04 HTML & CSS Textbook Chapter 17

HTML 5 Layout

HTML 5 introduced new tags that are more specific for the structure of the page

Common Structural Tags

Older browsers may need to be updated or have extra JavaScript added to function properly.

## Read: 04 HTML & CSS Textbook Chapter 8

Extra Markup

Doctypes tells the browser what kind of HTML it is using

Comments in HTML <!--Comment--> allows coder to place notes in the code ignored by the computer

ID Attribute *every html element can have an id attribute used to individually name it.

Class Attribute *allows multiple elements to be given the same label

Block Elements will always appear to start on a new line


- <h1>
- <p>
- <ul>
- <li>

Inline Elements always appear to continue on the same line as their neighboring elements


- <a>
- <b>
- <em>
- <img>

Span acts like an inline equivalent of the <div> tag.

IFrames short for inline frame, holds a seperate window within your window

Meta provides information about your page

Escape characters allow the coder to add characters to the page that would otherwise be operands in html


Return to reading-notes Deployed Site

Return to reading-notes Mark Down