Neal Stublen A Basic Template  HTML doctype Much simpler than HTML4/XHTML  Title and meta content Again simpler than “Content-Type”

Slides:



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

Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
New Semantic Elements (Part 2)
HTML5 An Evolutionary. About HTML5 Most of HTML 4.01 has survived in HTML5 Not supported by all browsers, but can start using the structure now Ready.
New Semantic Elements (Part 1). Semantics Explained The textbook definition of "semantics" is the study of the relationship between words and their meanings.
HTML5 new elements. The tag specifies independent, self- contained content. An article should make sense on its own and it should be possible to distribute.
HTML5 Fundamentals By RaedRASHEED 2015.
16 HTML Tables and Frames Section 16.1 Create a basic table using HTML Define borders Merge cells Align content in tables Section 16.2 Create a frames-based.
Purpose Tags are the key to marking up content on your HTML page. It’s the tags that mark up sections of the page and are defined (aesthetically) on the.
IMAGES Controlling size of images in CSS Aligning images in CSS Adding background images.
Structure Content Presentation Semantics.
Structure Content Presentation Semantics.
IPUB 100 Lesson 2 Instructor Mark Lamontagne Homework Review.
Building the User Interface by Using HTML5: Organization, Input, and Validation Lesson 3.
Working with Cascading Style Sheets. Introducing Cascading Style Sheets Style sheets are files or forms that describe the layout and appearance of a document.
Week 1.  Phillip Chee   Ext.1214 
Lesson 4: Using HTML5 Markup.  The distinguishing characteristics of HTML5 syntax  The new HTML5 sectioning elements  Adding support for HTML5 elements.
HTML and CSS- Layout. HTML Layout Frame Table – Block HTML5 layout elements.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
>> Introduction to HTML: Tags. Hyper - is the opposite of linear Text – words / sentences / paragraphs Mark-up – Marking the text Language – It is a language.
Title, meta, link, script.  The title looks like:  The tag defines the title of the document in the browser toolbar.  It also: ◦ Provides a title for.
The New Elements © Main Menu Structure Media Canvas Form Click on one of the categories below to view information about the new HTML5 elements in.
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.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
Ch 13 HTML and CSS Web Standards Solutions A Web Standardistas’ Approach.
Today’s Lesson….. 1.Formative Assessment Given Back – Go through Answers. 2.Webpage Design.
Basic HTML Document Structure. Slide 2 Goals (XHTML HTML5) XHTML Separate document structure and content from document formatting HTML 5 Create a formal.
HTML5 Introduction to Web Programming. Plan of the course HTML5 Structure of a document Main HTML Tags –Headings –Paragraphs –Links –Tables –Forms –Images.
Session: 8. © Aptech Ltd. 2Creating Navigational Aids and Division-Based Layout / Session 8  Explain HTML5 semantic tags  Explain HTML5 semantic tag.
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 Structure. Slide 2 Introduction Introduce the purpose of the new HTML5 semantic tags Introduce the HTML5 outlining mode Using semantic metadata.
1 Company Confidential Skin a Complete DotNetNuke Website Using HTML5 and CSS3 in One Hour Amelia Marschall Partner & Creative Director.
HTML5 Semantic
Week 1: Introduction to HTML and Web Design
Web Development & Design Foundations with HTML5 8th Edition
Introduction to HTML5.
© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
Introduction to HTML5.
W3C Web standards and Recommendations
Multi-level Navigation
XHTML Basics.
Web Development & Design Foundations with HTML5 8th Edition
Web Development & Design Foundations with HTML5 8th Edition
Web Development & Design Foundations with HTML5 7th Edition
Basic HTML Document Structure
CSS.
Introduction to HTML5.
Styles and the Box Model
XHTML Basics.
XHTML Basics.
Laying out a website using CSS and HTML
“Semantic” Tags Semantic markup describes what the content contains as opposed to what it looks like! Examples include: div, nav, article, header, footer.
What are Cascading Stylesheets (CSS)?
Web Development & Design Foundations with H T M L 5
Ground to Roof HTML/HTML5
XHTML Basics.
New Semantic Elements (Part 2)
Introduction to HTML5.
Common Page Design Elements
HTML 5 SEMANTIC ELEMENTS.
New Semantic Elements (Part 1)
XHTML Basics.
Introduction to HTML5.
Web Programming and Design
HTML5 Tags By Dr Derek Peacock
Monday, Sept. 24 Today we are going to update the html code to html5. It has some new features that we have not covered yet.
HTML5 and CSS3 Illustrated Unit B: Getting Started with HTML
Presentation transcript:

Neal Stublen

A Basic Template  HTML doctype Much simpler than HTML4/XHTML  Title and meta content Again simpler than “Content-Type”  Link to your CSS  Perhaps some JavaScript

HTML5 Compatibility  Simplifications were introduced after determining what could be removed while still working with modern browsers  None of these document changes should fail to render

DOCTYPE HTML 4.01… <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN“ "

DOCTYPE XHTML 1.0… <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN“ " transitional.dtd">

DOCTYPE HTML 5…

Character Set HTML 4.01, XHTML 1.0… <meta http-equiv="Content-Type“ content="text/html; charset=utf-8">

Character Set HTML 5…

Style Sheets HTML 4.01, XHTML 1.0… <link rel="stylesheet" type="text/css“ href="./css/styles.css?v=1.0">

Style Sheets HTML 5… <link rel="stylesheet“ href="./css/styles.css?v=1.0">

JavaScript HTML 4.01, XHTML 1.0… <script src="js/scripts.js“ type="text/javascript">

JavaScript HTML 5…

XHTML Differences  Void tags don’t need to be closed But it’s still okay <link rel="stylesheet“ href="css/styles.css" /> <link rel="stylesheet“ href="css/styles.css">

XHTML Differences  Uppercase/lowercase doesn’t matter on tags and attributes <link rel="stylesheet“ href="css/styles.css"> <LINK REL="stylesheet“ HREF="css/styles.css"> <Link Rel="stylesheet“ Href="css/styles.css">

XHTML Differences  Quoting attribute values isn’t necessary <link rel="stylesheet“ href="css/styles.css"> <link rel=stylesheet href=css/styles.css>

XHTML Differences  Boolean attributes don’t need values <input type=“checkbox” checked=“checked”>

HTML5 Compatibility  HMTL5 introduces some new element tags  Most older browsers don’t care Unknown element tags are rendered as inline elements  However, IE8 and earlier won’t apply styling to unknown element tags Use html5shiv.js

Page Structure  Look at the page we want to design for the HTML Herald. How would we create the page structure using elements? Header with navigation links Content area with three columns Footer

HTML5 “Semantic” Content  Additions to HTML5 are intended to provide better descriptions of content  Tag names imply meaning/purpose  Not just divs… header, nav, section, article, aside, footer  Why? Standard implementation Useful to non-human readers

The header element  Contains introductory elements or navigational links  The header is not defined by its location on the page, but its purpose within the page The entire page A section of the page Both

The section element  Thematic grouping of content, typically with a heading  If the content within the section isn’t related, use a div  Prefer a more specific tag if possible article, aside, nav

The article element  Similar to section, but…  Self-contained composition  Independently distributable  Possible examples: Forum posts Magazine articles Blog posts User comments

The nav element  Intended to wrap a set of navigation links that are of primary importance for the page  May be links to pages within the site  May be links to anchors within the page  You can have multiple nav sections

The aside element  Marks content that is tangentially related to the content around it or the content on the page  Possible examples: Side bar Advertisements

The footer element  Indicates footer content  It may appear at the end of the page  It may appear at the end of an article or section  Does not necessarily imply anything about position on the page, but relationship to content on the page Information about an author

Page Structure Revisited  How would we update the HTML Herald page layout to use the new HTML5 elements? header nav section article aside footer