New Semantic Elements (Part 1). Semantics Explained The textbook definition of "semantics" is the study of the relationship between words and their meanings.

Slides:



Advertisements
Similar presentations
HTML Basics Customizing your site using the basics of HTML.
Advertisements

Chapter 3 – Web Design Tables & Page Layout
Cascading Style Sheets
New Semantic Elements (Part 2)
Web Development & Design Foundations with XHTML Chapter 7 Key Concepts.
Web Development & Design Foundations with XHTML Chapter 7 Key Concepts.
Web Pages and Style Sheets Bert Wachsmuth. HTML versus XHTML XHTML is a stricter version of HTML: HTML + stricter rules = XHTML. XHTML Rule violations:
Links and Comments.
Lecture Cascading Style Sheets (CSS) Internal Style Sheets Classes.
XHTML1 Tables and Lists. XHTML2 Objectives In this chapter, you will: Create basic tables Structure tables Format tables Create lists.
XP 1 Working with Cascading Style Sheets Creating a Style for Online Scrapbooks Tutorial 7.
4.01 Cascading Style Sheets
Working with Cascading Style Sheets. 2 Objectives Introducing Cascading Style Sheets Using Inline Styles Using Embedded Styles Using an External Style.
CSS (Cascading Style Sheets): How the web is styled Create Rules that specify how the content of an HTML Element should appear. CSS controls how your web.
TUTORIAL 8: Enhancing a Web Site with Advanced CSS
1 The Structure of a Web Table beginning of the table structure first row of three in the table end of the table structure table cells You do not need.
IMAGES Controlling size of images in CSS Aligning images in CSS Adding background images.
Creating A Simple Web Page. Step 1- Open Dreamweaver & Create A New Page (File New) and blank.
Working with Cascading Style Sheets. Introducing Cascading Style Sheets Style sheets are files or forms that describe the layout and appearance of a document.
Online Chapter 1 4 th Edition.  Review elements  Whitespace handling  Rule structure  Linking to an external style sheet  Alternate Style Sheets.
XP Tutorial 7New Perspectives on Creating Web Pages with HTML, XHTML, and XML 1 Working with Cascading Style Sheets Creating a Style for Online Scrapbooks.
CO1552 – Web Application Development Lists, Special Characters, and Tables.
The Characteristics of CSS
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.
Chapter 2 HTML Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
IDs versus Classes Naming Your Tags for Maximum Functionality.
 This presentation introduces the following: › 3 types of CSS › CSS syntax › CSS comments › CSS and color › The box model.
Lesson 2 Adding more content to your web page. Thanks to Richard Hudnutt, Luella HS.
New Semantic Elements (Part 3). The Element The official specification for states that it “represents the heading of a section. The element is used to.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
 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.
CS134 Web Design & Development Cascading Style Sheets (CSS) Mehmud Abliz.
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: Hyptertext Markup Language Doman’s Sections.
Html Tables Basic Table Markup. How Tables are Used For Data Display Tables were originally designed to display and organize tabular data (charts, statistics,
Tutorial #6 – Creating Fixed Width Layouts. Tutorial #5 Review – Box Model Every html element is surround by a box Content, Padding, Border, Margin Can.
Lecture 2 - HTML and CSS Review SFDV3011 – Advanced Web Development 1.
Professor Waterman Cascading Style Sheets (CSS) is a language that works with HTML documents to define the way content is presented. The presentation.
Use CSS to Implement a Reusable Design Selecting a Dreamweaver CSS Starter Layout is the easiest way to create a page with a CSS layout You can access.
INTRODUCTORY Tutorial 5 Using CSS for Layout and Printing.
CNIT 132 – Week 4 Cascading Style Sheets. Introducing Cascading Style Sheets Style sheets are files or forms that describe the layout and appearance of.
Microsoft Expression Web 3 – Illustrated Unit D: Structuring and Styling Text.
Positioning Objects with CSS and Tables
Tables creating a table within a web page. What makes up a table? Columns Rows.
BEGINNER WEB DESIGN. INTRODUCTION Vocabulary Design Tools of the Trade HTML CSS.
Nesting and Floating. Nesting and Floating Elements To make our page content appear the way we want, and to make the best use of screen space, we can.
Group 9: Through examples, explain how to build a css navigation bar. Presented by: Daniel Ku, Matt Iannacci & Iphia Henry.
Stylizing a Navigational Menu Web Design Section 6-3 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development.
INT222 – Internet Fundamentals Week 8: Using New HTML features 1.
XP Tutorial 7New Perspectives on HTML and XHTML, Comprehensive 1 Working with Cascading Style Sheets Creating a Style for Online Scrapbooks Tutorial 7.
Working with Cascading Style Sheets
CSS Box Model.
Web Development & Design Foundations with XHTML
CSS Box Model.
Web Page Elements Writing For the Web
4.01 Cascading Style Sheets
Concepts for fluid layout
AN INTRODUCTORY LESSON TO MAKING A SIMPLE WEB PAGE By: RC Emily Solis
Cascading Style Sheets (Layout)
CSS Box Model.
New Semantic Elements (Part 3)
New Semantic Elements (Part 2)
HTML 5 SEMANTIC ELEMENTS.
New Semantic Elements (Part 1)
CSS Box Model.
Web Development & Design Foundations with XHTML
Concepts for fluid layout
4.01 Cascading Style Sheets
Presentation transcript:

New Semantic Elements (Part 1)

Semantics Explained The textbook definition of "semantics" is the study of the relationship between words and their meanings. In the context of HTML, a semantic element is one whose name describes its actual purpose. Take, for example, the element that we used extensively in XHTML. It's useful for defining a section of a web page but it does not indicate anything about the nature of the section itself. HTML5 introduces new semantic elements that better define and organize web documents.

Benefits of Semantic Elements Pages become much easier to understand when it comes time to edit them in the future. This is especially true if someone other than the original programmer is doing the editing. Search engines can better understand our website's content. The better Google, Yahoo, and Bing can pinpoint what our pages are all about, the higher our pages will likely appear in the search results. Screen readers and assistive devices can more easily interpret the organization of a page, therefore presenting site content more effectively to disabled visitors.

The Header Section in XHTML Remember how a typical XHTML web page defined the header section? My Super Cool Website And here's the CSS styling to define the height, width, and background color of the header section, as well as the text color and size of the heading:.header { height: 100px; width: 800px; background-color: #0033FF; }.header h1 { text-size: 24px; color: #CCCCCC; }

The HTML5 Element HTML5 now gives us a new semantic element for the header section: My Super Cool Website In the CSS style sheet, adding styling to the header section is done using the element itself, rather than via a class. Notice there is no preceding dot: header { height: 100px; width: 800px; background-color: #0033FF; } header h1 { text-size: 24px; color: #CCCCCC; } The HTML5 page still looks identical to the XHTML page.

The Footer Section in XHTML In XHTML, defining the footer section was done in a similar fashion: © 2013 SuperCool LLC Here is the corresponding CSS styling to the footer section and text:.footer { height: 40px; width: 800px; background-color: #0033FF; }.footer p { text-size: 16px; color: #CCCCCC; text-align: center; }

The HTML5 Element HTML5 now provides us with a dedicated element: © 2013 SuperCool LLC The CSS styling remains the same, but we are now styling the element directly, rather than a class: footer { height: 40px; width: 800px; background-color: #0033FF; } footer p { text-size: 16px; color: #CCCCCC; text-align: center; } Again, the two pages (XHTML and HTML5) look the same when rendered by a browser.

Navigation in XHTML In XHTML, defining the navigation menu followed a similar path: Home Page 2... The CSS styled the class:.nav { border: 1px solid black; width: 798px; height: 35px;... }.navlink { width: 199px;... }

The HTML5 Element HTML5 now provides us with the semantic element: Home Page 2... The CSS now styles the element: nav { border: 1px solid black; width: 798px; height: 35px;... }.navlink { width: 199px;... }

Revisiting the Header Element The official W3C specification for the element says that it "represents a group of introductory or navigational aids." The specification further states that, "A header element is intended to usually contain the section's heading (an h1–h6 element) but this is not required. The header element can also be used to wrap a section's table of contents, a search form, or any relevant logos." Since the header section often includes site navigation menus, let's go back to our simple site and move the within the.

Nesting Within Here we have moved the navigation menu to be inside the section: My Super Cool Website Home Page 2... Many HTML5 web designers prefer to place the main site menu within the top header section, as we just did.

Summary of Semantic Elements The new semantic elements in HTML5 add meaning to sections of a web document, assisting other programmers, search engines, and screen readers for the visually impaired. Just like the elements they replace, the new semantic elements do not actually do anything that is visible on the web page. That is accomplished completely with CSS styling. In the coming days, we will be learning about and using several more of the new semantic elements in HTML5.