“Semantic” Tags Semantic markup describes what the content contains as opposed to what it looks like! Examples include: div, nav, article, header, footer.

Slides:



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

Hypertext markup language.  Client asks for an html file  Server returns the html file  Client parses and displays it  This display is what most people.
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)
Neal Stublen A Basic Template  HTML doctype Much simpler than HTML4/XHTML  Title and meta content Again simpler than “Content-Type”
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 8 More on Links, Layout, and Mobile Copyright © 2013 Terry Ann Morris, Ed.D revised by Bill Pegram, 9/24/
Introduction to HTML. Topics HTML –What is HTML –Parts of an HTML Document –HTML Tags.
Lesson 4: Using HTML5 Markup.  The distinguishing characteristics of HTML5 syntax  The new HTML5 sectioning elements  Adding support for HTML5 elements.
Web Technologies Website Development Trade & Industrial Education
.  Entertain  Inform  Educate  Blogs  Sell  Date  Gamble  Religion.
Copyright © 2008 Pearson Prentice Hall. All rights reserved. 1 Exploring Microsoft Office Word 2007 Chapter 8 Word and the Internet Robert Grauer, Keith.
Week 8 – Part 3 More on Links, Layout, and Mobile Key Concepts 1.
Website Development with Dreamweaver
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.
 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.
 Word doc for you to download › Link at the beginning of class › 10 Questions › Answers to be added inline  Post to Sakai when completed › No resubmits.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
INTRODUCTION. What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML is not a programming language,
Unit 2, cont. September 12 More HTML. Attributes Some tags are modifiable with attributes This changes the way a tag behaves Modifying a tag requires.
HTML | DOM. Objectives  HTML – Hypertext Markup Language  Sematic markup  Common tags/elements  Document Object Model (DOM)  Work on page | HTML.
 Remember that HTML is just text  Need to point to pictures  Use the img tag  alt: › screen reader › REQUIRED for this class and to validate.
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.
Introduction to HTML Xiangming Mu 9/23/ Learning Objectives Understand basic HTML tags and their attributes Learn to create a simple HTML page.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
Spiderman ©Marvel Comics Creating Web Pages (part 1)
 Add one element at a time  If it doesn’t do what you want, › Delete it › DON’T just keep piling on more items.
HTML5 Structure. Slide 2 Introduction Introduce the purpose of the new HTML5 semantic tags Introduce the HTML5 outlining mode Using semantic metadata.
HTML Basics Text, Images, Tables, Forms. HTML Structure HTML is comprised of “elements” and “tags” – Begins with and ends with Elements (tags) are nested.
Week 1: Introduction to HTML and Web Design
HTML CS 4640 Programming Languages for Web Applications
Web Architecture & HTML
Web Basics: HTML/CSS/JavaScript What are they?
Web Development & Design Foundations with HTML5 7th Edition
Web Development & Design Foundations with HTML5 8th Edition
Elements of HTML Web Design – Sec 3-2
Concepts for fluid layout
Cascading Style Sheets Part 1
Coding, Testing and Valdating a Web Page
Web Development & Design Foundations with HTML5 8th Edition
Cascading Style Sheets for layout
Forms.
Creating Accessible PDFs from Word Docs
Elements of HTML Web Design – Sec 3-2
Creating Accessible Electronic Content
Styles and the Box Model
Fixed Positioning.
Digital Design – Copyright Law
Basic HTML and Embed Codes
Web Development & Design Foundations with HTML5 8th Edition
Web Development & Design Foundations with H T M L 5
Introduction to HTML5.
New Semantic Elements (Part 3)
New Semantic Elements (Part 2)
CSS: Classes and Contextual Selectors
HTML 5 SEMANTIC ELEMENTS.
Computer communications
Multipage Sites.
Concepts for fluid layout
HTML Tags and Structure
Web Programming and Design
HTML5 Tags By Dr Derek Peacock
HTML CS 4640 Programming Languages for Web Applications
CSS: Classes and Contextual Selectors
<div> <span>
Presentation transcript:

“Semantic” Tags Semantic markup describes what the content contains as opposed to what it looks like! Examples include: div, nav, article, header, footer Contrast with deprecated tags and attributes such as font, color, u (underline), etc Don’t confuse the header tag with the head section! We will learn about a few semantic tags

<header> tag This tag doesn’t do anything. It is there for organizational and, possibly, styling purposes. In this section we typically place the title of the page (not necessarily the same as the title tag), logos, a search box, etc

Example: <header> <header> <img src="cats.jpg" alt="cat picture"> <h1>Cats 'R Us</h1> <h2>All your feline needs</h2> </header>

<nav> tag Typically used to enclose a series of links such as a table of contents to navigate around your site. As with the <header> tag, this tag doesn’t do anything. It is there for organizational and styling purposes. While you may have multiple <nav> tags on a page, you should typically reserve this tag for a ‘significant’ series of links such as those to navigate to the main locations of your site. Contrast with, say, a series of legal disclaimers or copyright tags in small print at the bottom of your page. These probably should not merit their own <nav> section. Ultimately, placing a series of links inside a <nav> section is a judgement call.

Example: <nav> <nav> <a href="home.htm">Home</a> <a href="about.htm">About Us</a> <a href="contact.htm">Contact Us</a> </nav>

<footer> tag Another organizational tag. Typically includes copyright information, citations, ‘last modified’ info, etc. Think of it as the “small print” section of your page.

<div> tag A way of grouping information together that doesn’t fit into any of the previously described semantic tags eg: <div id=“rosa_parks_biography”>

<article> tag Typically used to contain specific pieces of content that might stand alone separately Can also be used to divide a single page of content that covers different topics. Eg: Quoting someone else’s blog post

“Semantic” Tags Restated Assigning meaning to markup. The tags we’ve just discussed: header, nav, footer, article, etc, are examples of “semantic” tags. They describe the information contained inside. We can assign styles (colors, fonts, etc) and positioning to these sections, but there is much more too. For example, suppose you want to format a page for a small device such as an iPhone. You might decide to dispense with the navigation and footer sections of your page. You could write some Javascript that notifies small-sized browsers not to display those sections.

HTML 5 Validator There are tools available on the web that allow you to upload an HTML document and will give it a quick check to ensure that it complies with HTML 5. Try it out using first_template.htm: http://validator.w3.org/ Try it out again using the French Indian War file under week #2. Experiment – e.g. remove the ‘alt’ attribute from the image of Washington and note the error. Note: As stated in the ‘warning’, this is not a perfect checker – there is NOT substitute for your own eyes and knowledge! For example, it will NOT ensure that programming conventions are followed