HTML5 SEMANTICS TO OR NOT TO THAT IS THE QUESTION BY WILLIAM MURRAY.

Slides:



Advertisements
Similar presentations
DOCUMENT TYPES. Digital Documents Converting documents to an electronic format will preserve those documents, but how would such a process be organized?
Advertisements

Web Development & Design Foundations with XHTML
Cascading Style Sheets (CSS). Cascading Style Sheets With the explosive growth of the World Wide Web, designers and programmers quickly explored and reached.
Unit 3 Day 4 FOCS – Web Design. No Journal Entry.
WeB application development
XHTML Basics.
MMDE5011 – INTERACTIVE MEDIA PRACTICE 1 WEEK 1: INTRODUCTION TO HTML5
MASTERY OBJECTIVE: Learn parts of an html document Learn basic html tags HTML-An Introduction.
HTML Semantic Structure
Semantically meaningful elements Elements that are self-descriptive; they describe the purpose of the content they contain Examples: – element defines.
Web Accessibility Web Services Office of Communications.
Midterm October : Dithering Dithering is using two different colored pixels to produce a third color in between. It is used when the color needed.
HTML Hypertext Markup Language –First proposed by CERN in 1989 –It is non-linear so it allows you to jump from place to place –Markup refers to the structure.
Introduction to Web Accessibility. What is Web Accessibility Web accessibility means that people with disabilities can use the Web Disabilities including.
Unit 2, cont. September 14 HTML,Validating your pages, Publishing your site.
Tutorial 1 Developing a Basic Web Page
Chapter 1 Understanding the Web Design Environment
Developing a Basic Web Page Posting Files on UMBC
Planning and Designing a Website Session 8. Designing a Website Like all technical artefacts a website needs to be carefully planned and designed to be.
 Definition of HTML Definition of HTML  Tags in HTML Tags in HTML  Creation of HTML document Creation of HTML document  Structure of HTML Structure.
Chapter 1 Variables in the Web Design Environment
© 2012 Adobe Systems Incorporated. All Rights Reserved. Copyright 2012 Adobe Systems Incorporated. All rights reserved. ® WRITING FOR THE WEB.
Creating a Simple Page: HTML Overview
1 Accessible Tables. 2 Making a table accessible How does a screen reader read a table? Some people who access the web use screen readers. Most screen.
HTML & CSS A brief introduction. OUTLINE 1.What is HTML? 2.What is CSS? 3.How are they used together? 4.Troubleshooting/Common problems 5.More resources.
IPUB 100 Lesson 2 Instructor Mark Lamontagne Homework Review.
Internet Skills An Introduction to HTML Alan Noble Room 504 Tel: (44562 internal)
Building the User Interface by Using HTML5: Organization, Input, and Validation Lesson 3.
Multimedia & The World Wide Web winny HCI 201 Multimedia and the www.
Class 3 – Creating Lists In this lesson, you will learn to use HTML to organize your text into lists.
Week 1.  Phillip Chee   Ext.1214 
Using Styles and Style Sheets for Design
ULI101 – XHTML Basics (Part II) What is Markup Language? XHTML vs. HTML General XHTML Rules Block Level XHTML Tags XHTML Validation.
XP 1 HTML: The Language of the Web A Web page is a text file written in a language called Hypertext Markup Language. A markup language is a language that.
Lesson 4: Using HTML5 Markup.  The distinguishing characteristics of HTML5 syntax  The new HTML5 sectioning elements  Adding support for HTML5 elements.
Web Optimization. So how does your site get into a search engine? 1 A search engine obtains your URL either by you submitting your site directly to the.
Chapter 1 Understanding the Web Design Environment Principles of Web Design, 4 th Edition.
Week 1 Understanding the Web Design Environment. 1-2 HTML: Then and Now HTML is an application of the Standard Generalized Markup Language Intended to.
Essential Tags Web Design – Sec 3-3 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development I” Course materials.
XHTML1 Building Document Structure Chapter 2. XHTML2 Objectives In this chapter, you will: Learn how to create Extensible Hypertext Markup Language (XHTML)
Learning Web Design: Chapter 4. HTML  Hypertext Markup Language (HTML)  Uses tags to tell the browser the start and end of a certain kind of formatting.
Chapter 2 HTML Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
The Semantic Web and Microformats. The Semantic Web Syntax = how you say something – Letters, words, punctuation Semantics = meaning behind what you say.
Cascading Style Sheets CSS by Pavlovic Nenad by. 2Cascading Style Sheets Presentation Contents What are CSS? What are CSS? History of CSS History of CSS.
Creating Webpage Using HTML
1 What is HTML? Standardized codes Web pages SGML Descriptive markup Tags.
WEB DESIGN AND PROGRAMMING Advanced CSS Techniques.
1 Creating Web Pages Part 1. 2 OVERVIEW: HTML-What is it? HyperText Markup Language, the authoring language used to create documents on the World Wide.
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.
Web software. Two types of web software Browser software – used to search for and view websites. Web development software – used to create webpages/websites.
>> HTML: Structure Elements. Elements in HTML are either Inline or Block. Block-level Elements – Begins on a new line – Occupy the whole width – Stacks.
Ali Alshowaish. What is HTML? HTML stands for Hyper Text Markup Language Specifically created to make World Wide Web pages Web authoring software language.
HTML ( HYPER TEXT MARK UP LANGUAGE ). What is HTML HTML describes the content and format of web pages using tags. Ex. Title Tag: A title It’s the job.
HTML.
HTML Basic. What is HTML HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML is not a programming language, it.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
HTML A brief introduction HTML1. HTML, what is? HTML is a markup language for describing web documents (web pages). HTML stands for Hyper Text Markup.
Headings are defined with the to tags. defines the largest heading. defines the smallest heading. Note: Browsers automatically add an empty line before.
Objective: To describe the evolution of the Internet and the Web. Explain the need for web standards. Describe universal design. Identify benefits of accessible.
Getting Started with HTML. HTML  Hyper Text Markup Language  HTML isn’t a program language, its known as a markup language  A Markup language has tags.
Session: 8. © Aptech Ltd. 2Creating Navigational Aids and Division-Based Layout / Session 8  Explain HTML5 semantic tags  Explain HTML5 semantic tag.
HTML+ CSS PRINCIPLES Getting started with web design the right way.
Creating Your 1 st Web Page. Tags Refers to anything between on a webpage Most appear in pairs surrounding content Some appear as empty tags (no closing.
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.
Web Design Principles 5 th Edition Chapter 3 Writing HTML for the Modern Web.
WEBSITE DESIGN Chp 1
Creating Accessible Content in WordPress
HTML 5 SEMANTIC ELEMENTS.
Lars Ballieu Christensen Advisor, Ph.D., M.Sc. Tanja Stevns
Presentation transcript:

HTML5 SEMANTICS TO OR NOT TO THAT IS THE QUESTION BY WILLIAM MURRAY

SEMANTICS Elements, attributes, and attribute values in HTML are defined (by this specification) to have certain meanings (semantics). For example, the ol element represents an ordered list, and the lang attribute represents the language of the content.ollang These definitions allow HTML processors, such as Web browsers or search engines, to present and use documents and applications in a wide variety of contexts that the author might not have considered.

HTML5 FEATURES: SEMANTICS Semantics is one of the most distinctive features of the Web Platform versus other application platforms. Developers usually ignore or de-prioritize such feature but the mastery of it can bring many benefits to our projects. The Web is text and text has a meaning. Ultimately the content that our browsers read is pure text. Web sites and web applications have been created in an ecosystem where text based content is linkable, searchable and mashable. In the open web scenario our content can be shown, fed and remixed by third parties, search engines and accessibility tools. All these benefits don't come for free. Automated tools can only do half of the job at recognizing the nature of the content. The better job the developer does at marking the right semantics of the content the easier will be for the rest of the agents to deal with it. HTML5 provides a series of tools to make developers life easier too: New media elements. New structural elements. New semantics for internationalization. New link relation types. New attributes. New form types. New microdata syntax for additional semantics.

HTML5: SEMANTICS There are two types of semantic tags introduced by html5, text-level and structural. Text-level semantics fall into what are currently inline elements. Ex.,,, Structural elements are the block level elements we use to structure pages. Ex.,,,,,

WHY USE SEMANTIC ELEMENTS? Because HTML conveys meaning, rather than presentation, the same page can also be used by a small browser on a mobile phone, without any change to the page. Instead of headings being in large letters as on the desktop, for example, the browser on the mobile phone might use the same size text for the whole the page, but with the headings in bold. But it goes further than just differences in screen size: the same page could equally be used by a blind user using a browser based around speech synthesis, which instead of displaying the page on a screen, reads the page to the user, e.g. using headphones. Instead of large text for the headings, the speech browser might use a different volume or a slower voice. That's not all, either. Since the browsers know which parts of the page are the headings, they can create a document outline that the user can use to quickly navigate around the document, using keys for "jump to next heading" or "jump to previous heading". Such features are especially common with speech browsers, where users would otherwise find quickly navigating a page quite difficult. Even beyond browsers, software can make use of this information. Search engines can use the headings to more effectively index a page, or to provide quick links to subsections of the page from their results. Tools can use the headings to create a table of contents (that is in fact how this very specification's table of contents is generated). This example has focused on headings, but the same principle applies to all of the semantics in HTML.

EXAMPLES OF HTML SEMANTIC ELEMENTS TagDescription Defines an article Defines content aside from the page content Defines additional details that the user can view or hide Defines a caption for a element Specifies self-contained content, like illustrations, diagrams, photos, code listings, etc. Defines a footer for a document or section Specifies a header for a document or section Specifies the main content of a document Defines marked/highlighted text Defines navigation links Defines a section in a document Defines a visible heading for a element Defines a date/time

HOW TO CHOOSE THE APPROPRIATE ELEMENT

PROPER USE OF SEMANTICS Authors must not use elements, attributes, or attribute values for purposes other than their appropriate intended semantic purpose, as doing so prevents software from correctly processing the page. This would make software that relies on these semantics fail: for example, a speech browser that allowed a blind user to navigate tables in the document would report the quote above as a table, confusing the user; similarly, a tool that extracted titles of works from pages would extract "Ernest" as the title of a work, even though it's actually a person's name, not a title.

A corrected version of this document might be:

THE CONTROVERSY: DO SEMANTICS MATTER? CONS We can become caught up in trying to use HTML5 Semantics wasting a great deal of time with little or no benefit. The web no longer consists of structured content. The structural elements of HTML5 currently don’t do much in visual browsers, though software such as screen readers are starting to use them. Almost every new HTML5 element currently provides to assistive technology as much semantic inform as a div elem. If searchability (SEO) is your grand purpose for using semantic mark-up, then know that most search engines do not give more credence to a page just because of its mark-up.

THE CONTROVERSY: DO SEMANTICS MATTER? PROS Semantics communicate meaning, and once that is established machines can do something meaningful with that data. Semantics make HTML5 a more flexible language. Semantics help search engines identify the correct web page content improving overall rating and placement in search engine results. A semantic web allows data to be shred and reused acoss applications, enterprises, and communities

FINAL THOUGHTS Once you learn to look past element names and think of their essential meaning, it gets a bit easier to write markup. Think of your chunks of content in terms of how they relate to each other and in which contexts they can be used. Try to keep things simple. Overthinking your markup will only cause more problems than it’s worth. And let’s face it: it’s not like you can’t change it later! Finally, try utilizing HTML5 markup in ways that gain the benefit of these new elements. Create tools, use your own documents to test how well-formed and structured they are, and test how portable your content really is. s not like you can’t change it later!