html5 structure & semantic

30
HTML5 STRUCTURE & SEMANTIC by Muktadiur Rahman

Upload: muktadiur

Post on 22-May-2015

635 views

Category:

Technology


2 download

TRANSCRIPT

Page 1: Html5 structure & semantic

HTML5 STRUCTURE & SEMANTIC

by Muktadiur Rahman

Page 2: Html5 structure & semantic

Agenda

Structure Block semantic element Inline semantic element Embedded media Interactivity Demo

Page 3: Html5 structure & semantic

Structure

Page 4: Html5 structure & semantic

Structure

Page 5: Html5 structure & semantic

Structure

<section> <header > <hgroup> <footer> <article> <nav>

Page 6: Html5 structure & semantic

<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

Page 7: Html5 structure & semantic

<header>

A header element is intended to usually contain the section's heading (an h1–h6 element or an hgroup 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

Page 8: Html5 structure & semantic

<hgroup>

The hgroup element represents the heading of a section. The element is used to group a set of h1–h6 elements when the heading has multiple levels, such as subheadings, alternative titles, or taglines

Page 9: Html5 structure & semantic

<footer>

The footer element represents a footer for its nearest ancestor sectioning content or sectioning root element. A footer typically contains information about its section such as who wrote it, links to related documents, copyright data, and the like

Page 10: Html5 structure & semantic

<article>

The article element represents a self-contained composition in a document, page, application, or site and that is, in principle, independently distributable or reusable, e.g. in syndication. This could be a forum post, a magazine or newspaper article, a blog entry, a user-submitted comment, an interactive widget or gadget, or any other independent item of content..

Page 11: Html5 structure & semantic

<nav>

The nav element represents a section of a page that links to other pages or to parts within the page: a section with navigation links

Page 12: Html5 structure & semantic

Block semantic element

<aside> <figure>

Page 13: Html5 structure & semantic

<aside>

The aside element represents a section of a page that consists of content that is tangentially related to the content around the aside element, and which could be considered separate from that content. Such sections are often represented as sidebars in printed typography.

Page 14: Html5 structure & semantic

<figure>

Specifies self-contained content, like illustrations, diagrams, photos, code listings, etc

Page 15: Html5 structure & semantic

Inline semantic element

<mark> <time> <meter> <progress>

Page 16: Html5 structure & semantic

<mark>

Defines marked/highlighted text

Page 17: Html5 structure & semantic

<time>

Defines a date/time

Page 18: Html5 structure & semantic

<meter>

Defines a scalar measurement within a known range (a gauge)

Page 19: Html5 structure & semantic

<progress>

The progress element provides a simple and effective way for a web designer to notify a user of their progress regarding a specified task

Page 20: Html5 structure & semantic

Embedded media

<audio> <video> <embed>

Page 21: Html5 structure & semantic

<audio>

Defines sound, such as music or other audio streams

Page 22: Html5 structure & semantic

<video>

 Specifies video, such as a movie clip or other video streams

Page 23: Html5 structure & semantic

<embed>

Defines a container for an external application or interactive content (a plug-in)

Page 24: Html5 structure & semantic

Interactivity

<details> <datalist> <menu> <command>

Page 25: Html5 structure & semantic

<details>

Defines additional details that the user can view or hide

Page 26: Html5 structure & semantic

<datalist>

Specifies a list of pre-defined options for input controls. This is used to provide an "auto complete" feature on <input> elements. Users will see a drop-down list of pre-defined options as they input data

Page 27: Html5 structure & semantic

<menu>

In HTML 5, a menu contains command elements, each of which causes an immediate action

Page 28: Html5 structure & semantic

<command>

Defines a command button that a user can invoke

Page 29: Html5 structure & semantic

demo

Demo on HTML5 Structure & Semantic

Page 30: Html5 structure & semantic

Thank You

Q/A