NEW HTML5 LAYOUT ELEMENTS <body> <div id="page"> <div id="header"> <div id="nav"> Explain: Going to see markup typically used to create this kind.

Slides:



Advertisements
Similar presentations
Neal Stublen Content Models  Metadata content Data not necessarily presented on the page ○ title, link, meta, style  Flow content.
Advertisements

Tutorial 4: Creating page layout with css
HTML 5. What is HTML5? HTML5 will be the new standard for HTML, XHTML, and the HTML DOM. The previous version of HTML came in The web has changed.
Neal Stublen A Basic Template  HTML doctype Much simpler than HTML4/XHTML  Title and meta content Again simpler than “Content-Type”
CM143 - Web Week 2 Basic HTML. Links and Image Tags.
Chapter 8 More on Links, Layout, and Mobile Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
IMAGES Controlling size of images in CSS Aligning images in CSS Adding background images.
Basics of HTML Shashanka Rao. Learning Objectives 1. HTML Overview 2. Head, Body, Title and Meta Elements 3.Heading, Paragraph Elements and Special Characters.
Chapter 8 More on Links, Layout, and Mobile Copyright © 2013 Terry Ann Morris, Ed.D revised by Bill Pegram, 9/24/
Building the User Interface by Using HTML5: Organization, Input, and Validation Lesson 3.
Lesson 4: Using HTML5 Markup.  The distinguishing characteristics of HTML5 syntax  The new HTML5 sectioning elements  Adding support for HTML5 elements.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
Week 8 – Part 3 More on Links, Layout, and Mobile Key Concepts 1.
HTML5 Sections Old structuring elements –body, div, address, blockquote –headings: h1, h2, h3, … –ul, ol, table New structuring elements –header, footer,
Computer Information Technology – Section 3-4. HTML – The Language of the Internet Objectives: The Student will: 1. Look at HTML 2. Understand the basic.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
HTML | DOM. Objectives  HTML – Hypertext Markup Language  Sematic markup  Common tags/elements  Document Object Model (DOM)  Work on page | HTML.
INTRODUCTION TO HTML5 Semantic Layout in HTML5.  The new semantic layout in HTML5 refers to a new class of elements that is designed to help you understand.
>> HTML: Structure Elements. Elements in HTML are either Inline or Block. Block-level Elements – Begins on a new line – Occupy the whole width – Stacks.
WRA 210: 10/30/2013 WIREFRAMES TO HTML/CSS. TODAY’S AGENDA Review: the object Review: the CSS Box Model Review: box model, and layout Intro: HTML5 structural.
WEB DEVELOPMENT IMMERSIVE BUILDING PAGE LAYOUTS. 2 Box Model Scaling Positioning Boxes Box Aesthetics HTML 5 Semantic Tags CSS Resets TOPICS GENERAL ASSEMBLYWEB.
Session: 8. © Aptech Ltd. 2Creating Navigational Aids and Division-Based Layout / Session 8  Explain HTML5 semantic tags  Explain HTML5 semantic tag.
BEGINNER WEB DESIGN. INTRODUCTION Vocabulary Design Tools of the Trade HTML CSS.
2.4. Choose and configure HTML5 tags to organize content and forms Choose and configure HTML5 tags for input and validation. Building the User Interface.
HTML5 Semantic
Week 1: Introduction to HTML and Web Design
HTML Structure & syntax
HTML Extra Markup CS 1150 Spring 2017.
Cascading Style Sheets for layout
Working with HTML5 & DIV Structures, CSS, Webfonts and Templates
HTML CS 4640 Programming Languages for Web Applications
Web Systems & Technologies
Web Architecture & HTML
Web Basics: HTML/CSS/JavaScript What are they?
Web Development & Design Foundations with HTML5 7th Edition
Front End Development workshop
Elements of HTML Web Design – Sec 3-2
Concepts for fluid layout
Introduction to HTML5.
Web Development & Design Foundations with HTML5 8th Edition
Cascading Style Sheets for layout
AN INTRODUCTORY LESSON TO MAKING A SIMPLE WEB PAGE By: RC Emily Solis
Elements of HTML Web Design – Sec 3-2
Web Development & Design Foundations with HTML5 7th Edition
Web Development & Design Foundations with HTML5 8th Edition
Web Development & Design Foundations with HTML5
Chapter 8 More on Links, Layout, and Mobile Key Concepts
Introduction to HTML5.
Styles and the Box Model
“Semantic” Tags Semantic markup describes what the content contains as opposed to what it looks like! Examples include: div, nav, article, header, footer.
Browser Support for HTML5
Basic HTML and Embed Codes
Lists, nesting, span/div
Web Development & Design Foundations with HTML5 8th Edition
Basics of Web Design Chapter 8 More on Links, Layout, and Mobile Key Concepts Copyright © 2014 Terry Ann Morris, Ed.D.
Web Development & Design Foundations with HTML5
Introduction to HTML5.
New Semantic Elements (Part 3)
New Semantic Elements (Part 2)
Introduction to HTML5.
HTML 5 SEMANTIC ELEMENTS.
Computer communications
Web Development & Design Foundations with HTML5
Concepts for fluid layout
Introduction to HTML5.
Web Client Side Technologies Raneem Qaddoura
Web Programming and Design
HTML5 Tags By Dr Derek Peacock
HTML CS 4640 Programming Languages for Web Applications
Presentation transcript:

NEW HTML5 LAYOUT ELEMENTS <body> <div id="page"> <div id="header"> <div id="nav"> Explain: Going to see markup typically used to create this kind of layout Click: sections of page appear, until you see two articles in the middle <div id="content"> <div id= "sidebar"> <div class="article"> <div class="article"> <div id="footer">

NEW HTML5 LAYOUT ELEMENTS <body> <div id="page"> <header> <div id="nav"> Explain: Going to see markup typically used to create this kind of layout Click: sections of page appear, until you see two articles in the middle <div id="content"> <div id= "sidebar"> <div class="article"> <div class="article"> <div id="footer">

NEW HTML5 LAYOUT ELEMENTS <body> <div id="page"> <header> <nav> Explain: Going to see markup typically used to create this kind of layout Click: sections of page appear, until you see two articles in the middle <div id="content"> <div id= "sidebar"> <div class="article"> <div class="article"> <div id="footer">

NEW HTML5 LAYOUT ELEMENTS <body> <div id="page"> <header> <nav> Explain: Going to see markup typically used to create this kind of layout Click: sections of page appear, until you see two articles in the middle <div id="content"> <div id= "sidebar"> <article> <article> <div id="footer">

NEW HTML5 LAYOUT ELEMENTS <body> <div id="page"> <header> <nav> Explain: Going to see markup typically used to create this kind of layout Click: sections of page appear, until you see two articles in the middle <div id="content"> <aside> <article> <article> <div id="footer">

NEW HTML5 LAYOUT ELEMENTS <body> <div id="page"> <header> <nav> Explain: Going to see markup typically used to create this kind of layout Click: sections of page appear, until you see two articles in the middle <div id="content"> <aside> <article> <article> <footer>

HEADER <header> <header> <h1>Yoko's Kitchen</h1> <nav> <ul> <li><a href="">home</a></li> <li><a href="">classes</a></li> <li><a href="">catering</a></li> <li><a href="">about</a></li> <li><a href="">contact</a></li> </ul> </nav> </header> Explain: Can be used for main header of page or for an individual article or section on that page

FOOTER <footer> <footer> © 2011 Yoko's Kitchen</footer> Explain: again can be used for entire page or the footer of an article or section

NAVIGATION <nav> <nav> <ul> <li><a href="">home</a></li> <li><a href="">classes</a></li> <li><a href="">catering</a></li> <li><a href="">about</a></li> <li><a href="">contact</a></li> </ul> </nav> Likely that it will only be used for the primary navigation

ARTICLES <article> <article> <figure> <img src="bok-choi.jpg" alt="BokChoi" /> <figcaption>Bok Choi</figcaption> </figure> <h2>Japanese Vegetarian</h2> <h3>Five week course in London</h3> <p>A five week introduction to traditional Japanese…</p> </article> Explain: container for section of page that could standalone or be syndicated

ASIDE <aside> <aside> <section class="popular-recipes"> <h2>Popular Recipes</h2> <a href="">Yakitori (...)</a> <a href="">Tsukune (...)</a> <a href="">Okonomiyaki (...)</a> <a href="">Mizutaki (...)</a> </section> </aside> Explain: Inside an <article> element = information related to an article (not essential to) Outside an <article> element = information related to entire page

SECTIONS <section> <section class="popular-recipes"> <h2>Popular Recipes</h2> <a href="">Yakitori (...)</a> <a href="">Tsukune (...)</a> <a href="">Okonomiyaki (...)</a> <a href="">Mizutaki (...)</a> </section> Explain: groups related content together and typically each section would have its own heading May contain several <article> elements (Generally not good for wrapping an entire page)

HEADING GROUPS <hgroup> <hgroup> <h2>Japanese Vegetarian</h2> <h3>Five week course in London</h3> </hgroup> Explain: groups together multiple <h1> - <h6> headings to create single heading

<figure> <figcaption> FIGURES <figure> <figcaption> <figure> <img src="images/bok-choi.jpg" alt="Bok Choi" /> <figcaption>Bok Choi</figcaption> </figure> Explain: not just used for images, can also be used for videos, graphs, diagrams, code samples, and text that supports the main example

LINKING AROUND BLOCK-LEVEL ELEMENTS <a href="introduction.html"> <article> <figure> <img src="bokchoi.jpg" alt="BokChoi" /> <figcaption>Bok Choi</figcaption> </figure> <hgroup> <h2>Japanese Vegetarian</h2> <h3>Five week course in London</h3> </hgroup> </article> </a> Explain: formally now allowed in HTML5 (was not previously)

HELPING OLDER BROWSERS UNDERSTAND header, section, footer, aside, nav, article, figure, figcaption { display: block;} Explain: need to tell older browsers which elements are block-level elements

HELPING OLDER BROWSERS HTML SHIV <!--[if lt IE 9]> <script src="http://html5shiv.googlecode.com/ /svn/trunk/html5.js"> </script> <![endif]--> Explain: IE9 was first version of IE to allow CSS to be associated with HTML5 layout elements To get that to work in older browsers you need to use HTML5 shiv or shim script (Requires JS to be enable)

SUMMARY The new HTML5 elements indicate the purpose of different parts of a web page and help to describe its structure. Clicks: Load individual bullets

SUMMARY The new elements provide clearer code (compared with using multiple <div> elements). Clicks: Load individual bullets

SUMMARY Older browsers that do not understand HTML5 elements need to be told which elements are block- level elements. Clicks: Load individual bullets

SUMMARY To make HTML5 elements work in Internet Explorer 8 (and older versions of IE), extra JavaScript is needed, which is available free from Google. Clicks: Load individual bullets