HTML5. 10 Things to Know. Webster University. ! R. Scott Granneman

Similar documents
Bye Bye. Warning! HTML5 The Future of HTML. Saturday, October 9, All of this may change! The spec is still in development!

HTML5. The Future of HTML. Washington University in St. Louis R. Scott Granneman

Tables & Lists. Organized Data. R. Scott Granneman. Jans Carton

RFID Chips Are Here. What You Need to Know. Washington University in St. Louis. ! R. Scott Granneman

Cascading Style Sheets

16. HTML5, HTML Graphics, & HTML Media 웹프로그래밍 2016 년 1 학기 충남대학교컴퓨터공학과

Media-Specific Styles

HTML TAG SUMMARY HTML REFERENCE 18 TAG/ATTRIBUTE DESCRIPTION PAGE REFERENCES TAG/ATTRIBUTE DESCRIPTION PAGE REFERENCES MOST TAGS

Basics of Web Design, 3 rd Edition Instructor Materials Chapter 2 Test Bank

CSC Web Programming. Introduction to HTML

Media Types & Media Features

PIC 40A. Lecture 4b: New elements in HTML5. Copyright 2011 Jukka Virtanen UCLA 1 04/09/14

INTRODUCTION TO HTML5! HTML5 Page Structure!

Design Process. Discover, Design, Develop, Deploy. R. Scott Granneman. Jans Carton

CSS Data Types. One of Those Things You Have To Know

Using CSS for page layout

CMPT 165 Notes on HTML5

Certified HTML Designer VS-1027

Html 5 Basic structure. <!DOCTYPE html> HTML <!DOCTYPE> Declaration. Mansour

Decorating with CSS. Cool Ways to Make Things Pretty. R. Scott Granneman. Jans Carton

Web Development & Design Foundations with HTML5 & CSS3 Instructor Materials Chapter 2 Test Bank

BASICS OF WEB DESIGN CHAPTER 2 HTML BASICS KEY CONCEPTS

Web Programming Week 2 Semester Byron Fisher 2018

COPYRIGHTED MATERIAL. Contents. Chapter 1: Creating Structured Documents 1

HTML Hyper Text Markup Language

A HTML document has two sections 1) HEAD section and 2) BODY section A HTML file is saved with.html or.htm extension

('cre Learning that works for Utah STRANDS AND STANDARDS WEB DEVELOPMENT 1

COPYRIGHTED MATERIAL. Contents. Introduction. Chapter 1: Structuring Documents for the Web 1

<li><a href="twister.html">twister</a></li> <li><a href="guacamole.html" lang="es">guacamole</a></li>

Review of HTML. Chapter Pearson. Fundamentals of Web Development. Randy Connolly and Ricardo Hoar

CSC Web Technologies, Spring HTML Review

QUICK REFERENCE GUIDE

Web development using PHP & MySQL with HTML5, CSS, JavaScript

Creating and Building Websites

HTML CS 4640 Programming Languages for Web Applications

CSCU9B2: Web Tech Lecture 3

MPT Web Design. Week 1: Introduction to HTML and Web Design

CSS for Designers. Capabilities to Know & Pitfalls to Avoid. R. Scott Granneman. Jans Carton

The three common HTML terms you should begin with are elements, tags, and attributes.

HTML5. HTML5 Introduction. Form Input Types. Semantic Elements. Form Attributes. Form Elements. Month Number Range Search Tel Url Time Week

The [HTML] Element p. 61 The [HEAD] Element p. 62 The [TITLE] Element p. 63 The [BODY] Element p. 66 HTML Elements p. 66 Core Attributes p.

Advanced Web Programming C2. Basic Web Technologies

Produced by. Web Development. BSc in Applied Computing. Eamonn de Leastar

New Media Production HTML5

CompuScholar, Inc. Alignment to Utah's Web Development I Standards

Techno Expert Solutions An institute for specialized studies!

HTML: Inline & HTML5 Elements, and More

Web Development and Design Foundations with HTML5 8th Edition

Understanding this structure is pretty straightforward, but nonetheless crucial to working with HTML, CSS, and JavaScript.

Static Webpage Development

HTML+ CSS PRINCIPLES. Getting started with web design the right way

Next... Next... Handling the past What s next - standards and browsers What s next - applications and technology

Guidelines for doing the short exercises

Certified HTML5 Developer VS-1029

The figure below shows the Dreamweaver Interface.

Bridges To Computing

How to Edit Your Website

Beginning Web Site Design

Introduction to Computer Science Web Development

HTML 5 and CSS 3, Illustrated Complete. Unit K: Incorporating Video and Audio

Google Sites Training

Web Programming and Design. MPT Senior Cycle Tutor: Tamara Week 1

SUB Gfittingen A nd Editi S«BEX- SAN FRANCISCO PARIS DUSSELDORF SOEST LONDON

MODULE 2 HTML 5 FUNDAMENTALS. HyperText. > Douglas Engelbart ( )

Web Designing HTML5 NOTES

HTML Organizing Page Content

Index. CSS directive, # (octothorpe), intrapage links, 26

c122jan2714.notebook January 27, 2014

1/6/ :28 AM Approved New Course (First Version) CS 50A Course Outline as of Fall 2014

Html basics Course Outline

Tutorial 2 - HTML basics

Index LICENSED PRODUCT NOT FOR RESALE

HTML5 & CSS 8 th Edition. Chapter 2 Building a Webpage Template with HTML5

Styles, Style Sheets, the Box Model and Liquid Layout

NEW WEBMASTER HTML & CSS FOR BEGINNERS COURSE SYNOPSIS

Course Overview. Week 1

<page> 1 Document Summary Document Information <page> 2 Document Structure Text Formatting <page> 3 Links Images <page> 4

HTML: Parsing Library

How to Edit Your Website

CSS THE M\SS1NG MANUAL. David Sawyer McFarland. POGUE PRESS" O'REILLr Beijing Cambridge Farnham Köln Paris Sebastopol Taipei Tokyo

Beginning Web Programming with HTML, XHTML, and CSS. Second Edition. Jon Duckett

Website Development with HTML5, CSS and Bootstrap

HTML5: Heading and sectioning elements, paragraphs, headers, footers, id, class and title, Part 1

Mark Scheme (Results)

HTML5, CSS3, JQUERY SYLLABUS

Layout Manager - Toolbar Reference Guide

HTML BEGINNING TAGS. HTML Structure <html> <head> <title> </title> </head> <body> Web page content </body> </html>

General Training Curriculum

WEBSITE PROJECT 2 PURPOSE: INSTRUCTIONS: REQUIREMENTS:

Table Basics. The structure of an table

HTML Cheat Sheet for Beginners

Web Design and Development ACS Chapter 3. Document Setup

Index. alt, 38, 57 class, 86, 88, 101, 107 href, 24, 51, 57 id, 86 88, 98 overview, 37. src, 37, 57. backend, WordPress, 146, 148

html & css basics class one intro to HTML, HTML page structure, text, images, & links

This document provides a concise, introductory lesson in HTML formatting.

Wireframe :: tistory wireframe tistory.

HTML: Parsing Library

c122sep814.notebook September 08, 2014 All assignments should be sent to Backup please send a cc to this address

Oliver Pott HTML XML. new reference. Markt+Technik Verlag

Full file at New Perspectives on HTML and CSS 6 th Edition Instructor s Manual 1 of 13. HTML and CSS

Transcription:

HTML5 10 Things to Know Webster University R. Scott Granneman 2009 R. Scott Granneman Last updated 20140221 You are free to use this work, with certain restrictions. For full licensing information, please see the last slide/page. 1

1 Flux 2

Warning Some of this may change The spec is still in development 3

2 Simpler Template 4

<doctype html> <html> <head> <meta charset="utf-8"> <title></title> </head> <body> </body> </html> 5

3 CSS Replaces Some HTML 6

Bye Bye Bye 7

In general, if you can use CSS, you have to 8

<font>" <big>" <center>" <s> & <strike>" <tt>" <acronym> 9

align" bgcolor" height on <td> & <th> hspace & vspace nowrap" valign" width on <hr>, <table>, <td>, & <th> 10

4 Frames Are Dead 11

<frame>" <frameset>" <noframes> Removed due to poor usability & accessibility <iframe> is still OK 12

5 Redefined Elements 13

<i>" HTML 4: italic HTML5: text in an alternate voice Examples» Foreign words <i lang="fr">» Technical terms» Ship names» Stage directions» Typographically italicized text 14

<b>" HTML 4: bold HTML5: stylistically offset text that s not more important Examples» Keywords» Product names in a review» Typographically emboldened text 15

Why is that text bold? Because it s more important? Because it should be strongly emphasized? 16

<em>" HTML 4: emphasis (italic) HTML5: stress emphasis text Something pronounced differently: Come here now 17

<strong>" HTML 4: strong emphasis (bold) HTML5: strong importance text Warning: Do not feed the bears. 18

<small>" In HTML 4, made text smaller In HTML5, indicates side comments & small print Examples:» Legal disclaimers» Copyright & licensing info» Attributions 19

<hr>" In HTML 4, inserted horizontal rule In HTML5, indicates paragraph-level thematic break Use to separate topics or scenes 20

Replace standard browser <hr> with CSS 21

6 Content Blocks 22

<div> 23

<div> has been around since HTML 4.01, but you need to understand it to get what HTML5 is doing 24

<div> is a block-level element that does nothing without CSS Use <div> to group block-level elements together that you want to affect in the same way with CSS 25

<div class="attention"> <p> </p>" <blockquote> <p> </p>" <p> </p>" </blockquote> <p> </p> </div> 26

<div class="utility-nav"> <p class="off"> </p> <p class="on"> </p> <p class="off"> </p> </div> 27

<section> 28

The section element represents a generic document or application section The section element is not a generic container element. When an element is needed for styling purposes or as a convenience for scripting, authors are encouraged to use the div element instead. 29

You should almost always start a section with a header <section> <h2>header</h2> <p>...</p> </section> 30

<article> 31

<article> is a section of content that forms an independent part of a document or site In other words, content that can stand on its own 32

Use <section> to split <article> into logical groups of content 33

<article> <h1>cthulhu Mythos</h1> <p>lorem ipsum</p> <section> <h2>yog-sothoth</h2> <p>lorem ipsum</p> </section> <section> <h2>nyarlathotep</h2> <p>lorem ipsum</p> </section> </article> 34

Which One To Use? 35

<article>" An independent, self-contained block of related content Can it stand on its own? <section>" A block of related content Is it related content? <div>" A generic block of content Is it a block of content? 36

7 Semantic Page Parts 37

<aside> 38

Tangentially related content» Sidebars» Pull quotes» Glossary» Related links 39

<nav> 40

a section of a page that links to other pages or to parts within the page: a section with navigation links. Only major navigation blocks 41

<main> 42

The main content of the body of a document or application content that is directly related to or expands upon the central topic of a document 43

<figure> 44

annotate illustrations, diagrams, photos, code listings, etc, that are referred to from the main content of the document, but that could, without affecting the flow of the document, be moved away from that primary content, e.g. to the side of the page, to dedicated pages, or to an appendix. 45

<figcaption>" Optional caption or legend associated with a <figure> <figure>" <img src="images/libby.jpg" alt="my dog Libby">"" <figcaption>libby when she was a few months old</figcaption>" </figure> 46

html5doctor.com/downloads/h5d-sectioning-flowchart.png 47

8 Headers & Footers 48

<header> 49

Introductory or navigational aids Usually contains» A section s heading (<h1> <h6>)» Table of contents» Logos» Search form Does not introduce a new section; it is the head of a section 50

<footer> 51

Replaces <div id="footer"> Footer not just for pages, but also for sections too Info such as» Author» Copyright» Links to related content» Contact info (in <address>) 52

9 <video>" & <audio> 53

<video> 54

<video> allows the browser to play video without Flash or other plugins 55

<video width="640" height="360" src="http:// www.youtube.com/demo/google_main.mp4" controls autobuffer></video>" controls" Show play, stop, & other controls autoplay" No autobuffer" No autoplay, so video downloaded in background poster="action.png"" Display image before video loads 56

Ogg H.264 (MP4) WebM 57

Best way to generate <video> code Video for Everybody Generator sandbox.thewikies.com/vfe-generator/ 58

59

Video Conversion Software Media Converter media-converter.sourceforge.net Free Freemake Video Converter www.freemake.com Free 60

<audio> 61

<audio> allows the browser to play audio without Flash or other plugins 62

<audio src="elvis.ogg" controls autobuffer>" </audio>" controls" Show play, stop, & other controls autoplay" No autobuffer" No autoplay, so audio downloaded in background loop" Repeat only use if necessary 63

Ogg MP3 AAC WebM WAV 64

Audio Conversion Software Media Converter media-converter.sourceforge.net Free XLD tmkk.pv.land.to/xld/index_e.html Free Freemake Audio Converter www.freemake.com Free 65

<source> 66

<source>" allows authors to specify multiple media resources for media elements. It does not represent anything on its own. Always a child of media elements <video> & <audio> 67

<video> <source src="video.mp4" type="video/mp4"> <source src="video.ogv" type="video/ogg; codecs='theora, speex'"> </video> 68

Older browsers don t support <video> & <audio> Use the JavaScript found at github.com/etianen/html5media to enable older browsers to work 69

10 IE? 70

IE 9 & below do not fully support HTML5 (surprise) There are ways to add HTML5 support to IE, however 71

html5shiv can enable use of HTML5 sectioning elements in legacy Internet Explorer code.google.com/p/html5shiv/ github.com/afarkas/html5shiv 72

<--[if lt IE 9]> <script src="dist/html5shiv.js"></script> <[endif]--> 73

Modernizr is a JavaScript library that detects HTML5 & CSS3 features in the user s browser modernizr.com github.com/modernizr/modernizr 74

Thank you scott@granneman.com www.granneman.com ChainsawOnATireSwing.com @scottgranneman 75

HTML5 10 Things to Know Webster University R. Scott Granneman 2009 R. Scott Granneman Last updated 20140221 You are free to use this work, with certain restrictions. For full licensing information, please see the last slide/page. 76

Licensing of this work This work is licensed under the Creative Commons Attribution-ShareAlike 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/4.0/. You are free to:» Share copy and redistribute the material in any medium or format» Adapt remix, transform, and build upon the material for any purpose, even commercially Under the following terms: Attribution. You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use. Give credit to: Scott Granneman www.granneman.com scott@granneman.com Share Alike. If you remix, transform, or build upon the material, you must distribute your contributions under the same license as the original. No additional restrictions. You may not apply legal terms or technological measures that legally restrict others from doing anything the license permits. Questions? Email scott@granneman.com 77

<header></header>" <nav></nav>" <main>" <article>" <section></section>" <figure></figure>" <section></section>" </article>" <article></article>" <main>" <aside></aside>" <footer><footer> 78