HTML5 Tags By Dr Derek Peacock

Slides:



Advertisements
Similar presentations
Chapter 3 – Web Design Tables & Page Layout
Advertisements

WEB DESIGN TABLES, PAGE LAYOUT AND FORMS. Page Layout Page Layout is an important part of web design Why do you think your page layout is important?
HTML: HyperText Markup Language Hello World Welcome to the world!
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
Chapter 2 HTML Basics Key Concepts
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
New Semantic Elements (Part 2)
CIS 1310 – HTML & CSS 6 Layout. CIS 1310 – HTML & CSS Learning Outcomes  Describe & Apply the CSS Box Model  Configure Float with CSS  Designate Positioning.
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.
Neal Stublen A Basic Template  HTML doctype Much simpler than HTML4/XHTML  Title and meta content Again simpler than “Content-Type”
DIVISIONS FOR ALL WEB PAGES Web Page Elements.  All Web Pages should have the following 4 elements (Also called divisions).  header  navigation  content.
How to Make a Web Page: A Crash Course in HTML programming.
 2008 Pearson Education, Inc. All rights reserved. 1 Introduction to HTML.
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.
Chapter 2 Introduction to HTML5 Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
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.
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.
Web Foundations MONDAY, SEPTEMBER 30, 2013 LECTURE 3: COMMON HTML TAGS, NEW HTML5 SECTIONS, USING FTP.
Chapter 2 HTML Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
1 CSC 121 Computers and Scientific Thinking David Reed Creighton University HTML and Web Pages.
Copyright © 2013 MyGraphicsLab / Pearson Education STRUCTURE AND HTML TAGS MyGraphicsLab: Adobe Dreamweaver CS6 ACA Certification Preparation for Web Communication.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
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.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
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.
4 Chapter Four Introduction to HTML. 4 Chapter Objectives Learn basic HTML commands Discover how to display graphic image objects in Web pages Create.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
INT222 - Internet Fundamentals Shi, Yue (Sunny) Office: T2095 SENECA COLLEGE.
Web Site Development - Process of planning and creating a website.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
WHY DO YOU NEED IT? What is a wireframe?. A wireframe is… A wireframe is a simple visual guide to show you what a Web page would look like. Wireframes.
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.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 2 Key Concepts 1 Copyright © Terry Felke-Morris.
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.
CONCEPTS FOR FLUID LAYOUT Web Page Layout. Essential Questions What challenges do mobile devices present to Web designers? What are the basic concepts.
HTML5 Semantic
Week 1: Introduction to HTML and Web Design
Web Systems & Technologies
Web Development & Design Foundations with HTML5 7th Edition
Chapter 2 Developing a Web Page.
Concepts for fluid layout
AN INTRODUCTORY LESSON TO MAKING A SIMPLE WEB PAGE By: RC Emily Solis
HTML Vocabulary.
Web Development & Design Foundations with HTML5 7th Edition
Web Development & Design Foundations with HTML5
IS333: MULTI-TIER APPLICATION DEVELOPMENT
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.
Computers and Scientific Thinking David Reed, Creighton University
1 Introduction to XHTML.
Web Development & Design Foundations with HTML5 8th Edition
Web Development & Design Foundations with H T M L 5
Web Development & Design Foundations with HTML5
Introduction to HTML.
New Semantic Elements (Part 2)
HTML 5 SEMANTIC ELEMENTS.
Web Development & Design Foundations with HTML5
Creating a Basic Web Page using HTML
Basics of Web Design Chapter 2 HTML Basics Key Concepts
Concepts for fluid layout
Digging in a little deeper
HTML Tags and Structure
Basics of Web Design Chapter 2 HTML Basics Key Concepts
Web Programming and Design
Presentation transcript:

HTML5 Tags By Dr Derek Peacock 4-Sep-19 HTML5 Semantic Tags By Dr Derek Peacock This presentation introduces the new HTML5 structural tags that can be used to divide a web page into typical areas such as header and footer. Derek Peacock

What is new? New Tags and attributes Native Video & Audio 2D/3D Canvas with hardware support SVG Local storage and local SQL Databases Web workers and messaging Drag and Drop Geolocation New input types, and data validation

Basic Block and Inline Tags <div> Division <h1> Headings <p> paragraphs <ul><ol> Lists <table> <a> hyperlinks <img> images

Dividing a Page into Blocks/Parts HTML <main> <section> <article> <header> HTML 5

HTML5 Tags 4-Sep-19 HTML5: <header> The <header> tag is used to specify a header to the page or a part of the page. <header> <img src=“logo” alt=“logo”> <h1>Website Name</h1> </header> The header tag can be used to define an area typically at the top of a web page where the title of the website and identifying logos or images can be found. Headers can also occur elsewhere in the page. An article for example could also have a header and footer. The page header should have a level one heading which contains the identity or name of the web site. There might be other elements inside the header such as links, a search facility or a login area. Derek Peacock

Header Code (repeated)

Page Structure …… <html> <head> <body> <header> …… <footer>

HTML5 Tags 4-Sep-19 HTML5: <nav> The <nav> tag defines a main section of navigation links or a menu bar. Not all links of a document should be in a <nav> element. The <nav> element is intended only for major block of navigation links. Typically the <nav> element will contain the main menu entries for the page. Browsers, such as screen readers for disabled users, can use this element to determine whether to omit the initial rendering of this content. Derek Peacock

Website Menu (repeated)

HTML5: <main> This should enclose the main content of a web page. There should be only one main part of a web page. Should contain unique content only Cannot be part of section, article, header or footer

Main Content (unique)

HTML5 Tags 4-Sep-19 HTML5: <footer> The <footer> tag defines a footer for a document or section. A footer typically contains the author of the document, copyright information, links to terms of use, contact information, etc. Footers are typically placed at the bottom of a document. However, this is not required. A document/section can also have more than one footer Footers are usually found at the foot of the page where they contain copyright and authorship information as well as less used links to pages in the web site such as About Us, or Terms & Conditions. Again section of the page or articles in the page might also have footers. Derek Peacock

<footer> (repeated) HTML5 Tags 4-Sep-19 <footer> (repeated) <footer> <p>Copyright © Derek Peacock 2018</p> <p> <a href=“link1”>Link 1</a> <a href=“link2”>Link 2</a> <a href=“link3”>Link 3</a> <a href=“link4”>Link 4</a> </footer> The copyright symbol has to be entered in code view as a special symbol preceded by the & character and ending in a semi-colon. Derek Peacock

HTML5: <section> HTML5 Tags 4-Sep-19 HTML5: <section> The section element represents a generic section of a document or application. A section, in this context, is a thematic grouping of content, typically with a heading. Examples of sections would be chapters, the various tabbed pages in a tabbed dialog box, or the numbered sections of a thesis. A Web site's home page could be split into sections for an introduction, news items, and contact information. Derek Peacock

<section> example HTML5 Tags 4-Sep-19 <section> example Spot the mistake? A section is used to divide content up into equal parts, where all parts are required to complete the content. Typically the main content of a page will have a topic, and that topic will be divided into an introduction, a main section and a conclusion. Derek Peacock

HTML5: <article> HTML5 Tags 4-Sep-19 HTML5: <article> The <article> tag specifies independent, self-contained content. An article should make sense on its own and it should be possible to distribute it independently from the rest of the page/site. Articles can contain sections, and sections cam contain articles Examples of possible articles: forum post newspaper article blog entry user comment Derek Peacock

<article> example HTML5 Tags 4-Sep-19 <article> example In this example the article is about apples. As the heading of the article has a sub-heading, it is best practice to group these to assist screen readers make sense of the heading levels. In this article there are two sections, one on Red Delicious and one on Granny Smith apples. Thus an article can contain sections, and a section can contain articles. Derek Peacock

HTML5 Tags 4-Sep-19 <hgroup> The <hgroup> element is used to group a set of <h1> to <h6> elements, when a heading has multiple levels (sub headings). Used to group two or more headings together. Derek Peacock

HTML5 Tags 4-Sep-19 <aside> The <aside> tag defines some content aside from the content it is placed in. The aside content should be related to the main content, but not essential. <p> My family and I visited The Epcot centre this summer. </p> <aside> <h4>Epcot Centre</h4> <p>The Epcot Centre is a theme park in Disney World, Florida. </p> </aside> An aside is typically referred to as a sidebar where supplementary or explanatory notes are show. These should aid the understanding of the main content, or contain supplementary images or useful links and notes. Derek Peacock

HTML5 Tags 4-Sep-19 <address> The <address> tag defines the contact information for the author/owner of a document or an article. If the <address> element is inside the <body> element, it represents contact information for the document. If the <address> element is inside an <article> element, it represents contact information for that article. The text in the <address> element usually renders in italic. Most browsers will add a line break before and after the address element. Derek Peacock

<address> example HTML5 Tags 4-Sep-19 <address> example <footer> <address> For more details, contact <a href="mailto:js@example.com">John Smith</a> </address> <p> <small>© copyright 2038 Example</small> </p> </footer> In this case the address is an email address, it will appear as a hyperlink which when clicked on loads up the user’s email application such as Outlook. Derek Peacock

HTML5: <figure> The figure element can be used to annotate illustrations, diagrams, photos, code listings,. <figure> <img src="http://placehold.it/120x160”> <figcaption>Some Image Caption</figcaption> </figure>

Ed Sheeran Create a suitable HTML structure for the example music page http://www.edsheeran.com/music using:- <header><footer><nav><main><section> <article> and <video><button><a><p><img> DO NOT USE ANY <div> For help use W3Schools