Lesson 1
Basic HTML
Three Pillars
• HTML 5
– Structure
– Content
• CSS3
– Appearance
• JavaScript
– Behavior
Progressive Enhancement
• Build in layers
• Basic content is available with any browser
• Build on top of that
• Graceful degradation
– Build for the newest greatest browser
– Allows page to degrade fro older browsers
DOCTYPE
• Tells browsers how to render the page
• Quirks Mode
– Don’t specify a doctype
• Show doctypes on w3schools
Parts of a page
• Head
– Meta data
– Links to external files
• CSS
• JavaScript
• Title
• Body
– Content
Build a Skeleton
• !DOCTYPE html
• head
– Meta charset=“utf-8”
– Title
– Link css
– Script JavaScript
• Body
Tags
• Tags are the structure of the page
• Elements
– Inline
• p
– Block
• Article
• HTML5 semantics
– Give sections meaning
Attributes
• Give elements meaning or context
– Not too many with HTML5
• Attributes have a value
Syntax
• <img src=“pic.jpg” alt=“picture”/>
Semantic Tags
• Header
• Section
• Article
• Aside
• Footer
Common Tags
• p
• h1-h6
• ul
• ol
• img
Character Codes
• W3schools character sets
– Ascii
– ISO-8859-1
• Entity Number
– &#34;
• Entity Name
– &quot;

Lesson 1 basic html