SlideShare a Scribd company logo
 HTML DOCTYPE
 Semantic Elements
 Structural Tags
 Form Elements
 The <!DOCTYPE> declaration is not an HTML
tag.
 HTML5 is not based on SGML.
 Tip: Always add the <!DOCTYPE> declaration
to your HTML documents, so that the browser
knows what type of document to expect.
 The purpose of a DTD (Document Type
Definition) is to define the legal building
blocks of an XML document.
 A DTD defines the document structure
with a list of legal elements and
attributes.
 The Standard Generalized Markup
Language is for defining
generalized markup languages for
documents.
 Semantics means (from Ancient Greek), is
the study of meaning.
 Semantic elements are elements with a
meaning.
Examples of non-semantic elements: <div>
and <span> - Tells nothing about its
content.
Examples of semantic elements: <form>,
<table>, and <img> - Clearly defines its
content.
 The <section> element represents a generic
section of a document or application.
 According to W3C's HTML5 documentation: "A
section is a thematic grouping of content,
typically with a heading."
 A Web site's home page could be split into
sections for introduction, content, and contact
information.
 With Section elements, you can use h1
elements through out, without having to worry
about whether a particular section is at the top
level, the second level, the third level and so
on.
 The article element represents a complete,
or 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.
<section id="main">
<article>
<!-- first blog post content goes here -->
</article>
<article>
<!-- second blog post content goes here -->
</article>
<article>
<!-- third blog post content goes here -->
</article>
</section>
<article>
<section id="introduction">
</section>
<section id="content">
</section>
<section id="summary">
</section>
</article>
 Typical Page Structure
 Header (or masthead) at the top of the page, usually
containing the top level heading of the page, and/or
a company logo. This is the big bold statement at the
top of the page that says what the web site is, and
who it belongs to.
 Main content column, which holds the main content
of functionality you are here to use.
 One of more sidebars, holding tributary content that
is either related to that page's main content and
changes as new pages are loaded (eg related links),
or is always relevant and persists across the whole site
(eg "your basket" information on an e-commerce
site).
 Navigation menu going across the page
or down the page in a column. This often
put in a sidebar, or may form part of the
header.
 A footer that goes across the bottom of
the site and contains secondary
information such as copyright
information and contact details.
 <body>
› <div id="header">
› <!-- header content goes in here -->
› </div>
› <div id="nav">
› <!-- navigation menu goes in here -->
</div>
<div id="sidebar1">
 <!-- sidebar content goes in here -->
</div>
<div id="main">
 <!-- main page content goes in here -->
</div>
<div id="sidebar2">
 <!-- sidebar content goes in here -->
</div>
<div id="footer">
 <!-- footer content goes in here -->
</div>
 </body>
 <header>: Used to contain the header content of a
site.
 <footer>: Contains the footer content of a site.
 <nav>: Contains the navigation menu, or other
navigation functionality for the page.
 <article>: Contains a standalone piece of content
that would make sense if syndicated as an RSS item,
for example a news item.
 <section>: Used to either group different articles into
different purposes or subjects, or to define the
different sections of a single article.
 <aside>: Defines a block of content that is related to
the main content around it, but not central to the
flow of it.
<body>
<header>
<!-- header content goes in here -->
</header>
<nav>
<!-- navigation menu goes in here --> </nav>
<section id="sidebar1">
<!-- sidebar content goes in here -->
</section>
<section id="main">
<!-- main page content goes in here -->
</section>
<aside>
<!-- aside content goes in here -->
</aside>
<footer>
<!-- footer content goes in here -->
</footer>
</body>
 The <nav> element is for marking up the
navigation links or other constructs (eg a
search form) that will take you to
different pages of the current site, or
different areas of the current page.
 Other links, such as sponsored links, do
not count. You can of course include
headings and other structuring elements
inside the <nav>, but it's not compulsory.
 <aside> element to mark-up the 2nd
sidebar: the one containing latest gigs and
contact details.
 <aside> is for marking up pieces of
information that are related to the main
flow, but don't fit in to it directly.
 Other good choices for an <aside> would
be information about the author of the blog
post(s), a band biography, or a band
discography with links to buy their albums.
 An HTML element in a web page may not be
recognised by browsers.
 By default the browser will just treat it like
a <span>, i.e., an anonymous inline element.
 Most of the HTML5 elements we have looked at
are supposed to behave like block elements,
therefore the easiest way to make them
behave properly in older browsers is by setting
them to display: block; in your CSS.
 You can do this by including the following CSS
rule at the top of your CSS, whether it is
contained in the head of your HTML file, or an
external CSS file.
 article, section, aside, hgroup, nav, header,
footer, figure, figcaption
{
display: block;
}
Note: for IE 6 & below
<script>
document.createElement('article');
document.createElement('section');
document.createElement('aside');
document.createElement('hgroup');
document.createElement('nav');
document.createElement('header');
document.createElement('footer');
document.createElement('figure');
document.createElement('figcaption');
</script>
 The <form> element represents a user-
submittable form.
<form action="http://www.google.com/search"
method="get">
<label>Google:
<input type="search" name="q">
<input type="submit" value="Search...">
</form>

More Related Content

What's hot

Html mod1
Html mod1Html mod1
Html mod1
VARSHAKUMARI49
 
Web Development 3 (HTML & CSS)
Web Development 3  (HTML & CSS)Web Development 3  (HTML & CSS)
Web Development 3 (HTML & CSS)
ghayour abbas
 
Meta Tag Presentation
Meta Tag PresentationMeta Tag Presentation
Meta Tag Presentationlaurlaur123
 
Frederick Highbaugh Jr Art 2830 Meta tag presentation
Frederick Highbaugh Jr Art 2830 Meta tag presentationFrederick Highbaugh Jr Art 2830 Meta tag presentation
Frederick Highbaugh Jr Art 2830 Meta tag presentationhighbaughjr
 
Css module1
Css module1Css module1
Css module1
VARSHAKUMARI49
 
Web searching
Web searchingWeb searching
Web searching
ITOCA
 
Web Development 4
Web Development 4Web Development 4
Web Development 4
ghayour abbas
 
Web Development 4 (HTML & CSS)
Web Development 4 (HTML & CSS)Web Development 4 (HTML & CSS)
Web Development 4 (HTML & CSS)
ghayour abbas
 
Std 10 Chapter 2 Head and Body Sections in HTML (Part 2- Body section)
Std 10 Chapter 2 Head and Body Sections in HTML (Part 2- Body section)Std 10 Chapter 2 Head and Body Sections in HTML (Part 2- Body section)
Std 10 Chapter 2 Head and Body Sections in HTML (Part 2- Body section)
Nuzhat Memon
 
WEB PAGE DESIGN USING HTML
WEB PAGE DESIGN USING HTMLWEB PAGE DESIGN USING HTML
WEB PAGE DESIGN USING HTMLSneha Mukherjee
 
Creating your 1st html page
Creating your 1st html pageCreating your 1st html page
Creating your 1st html page
Sara Corpuz
 
HTML
HTMLHTML
Html Simple Tutorial
Html Simple TutorialHtml Simple Tutorial
Html Simple Tutorial
Janani Satheshkumar
 
Html5 tutorial
Html5 tutorialHtml5 tutorial
Html5 tutorial
pavankumarmangena
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
Ameer Khan
 
Url
UrlUrl
HTML - Structure
HTML - StructureHTML - Structure
HTML - Structure
mrhoopsfan23
 

What's hot (20)

Html mod1
Html mod1Html mod1
Html mod1
 
Introduction to css
Introduction to cssIntroduction to css
Introduction to css
 
Web Development 3 (HTML & CSS)
Web Development 3  (HTML & CSS)Web Development 3  (HTML & CSS)
Web Development 3 (HTML & CSS)
 
Meta Tag Presentation
Meta Tag PresentationMeta Tag Presentation
Meta Tag Presentation
 
Frederick Highbaugh Jr Art 2830 Meta tag presentation
Frederick Highbaugh Jr Art 2830 Meta tag presentationFrederick Highbaugh Jr Art 2830 Meta tag presentation
Frederick Highbaugh Jr Art 2830 Meta tag presentation
 
CSS - LinkedIn
CSS - LinkedInCSS - LinkedIn
CSS - LinkedIn
 
Css module1
Css module1Css module1
Css module1
 
Web searching
Web searchingWeb searching
Web searching
 
Web Development 4
Web Development 4Web Development 4
Web Development 4
 
Web Development 4 (HTML & CSS)
Web Development 4 (HTML & CSS)Web Development 4 (HTML & CSS)
Web Development 4 (HTML & CSS)
 
Std 10 Chapter 2 Head and Body Sections in HTML (Part 2- Body section)
Std 10 Chapter 2 Head and Body Sections in HTML (Part 2- Body section)Std 10 Chapter 2 Head and Body Sections in HTML (Part 2- Body section)
Std 10 Chapter 2 Head and Body Sections in HTML (Part 2- Body section)
 
WEB PAGE DESIGN USING HTML
WEB PAGE DESIGN USING HTMLWEB PAGE DESIGN USING HTML
WEB PAGE DESIGN USING HTML
 
Creating your 1st html page
Creating your 1st html pageCreating your 1st html page
Creating your 1st html page
 
HTML
HTMLHTML
HTML
 
Html Simple Tutorial
Html Simple TutorialHtml Simple Tutorial
Html Simple Tutorial
 
Html5 tutorial
Html5 tutorialHtml5 tutorial
Html5 tutorial
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
 
Url
UrlUrl
Url
 
HTML - Structure
HTML - StructureHTML - Structure
HTML - Structure
 
Form 1 Term 3 Week 2.1
Form 1   Term 3   Week 2.1Form 1   Term 3   Week 2.1
Form 1 Term 3 Week 2.1
 

Similar to HTML5 introduction

Html 5, a gentle introduction
Html 5, a gentle introductionHtml 5, a gentle introduction
Html 5, a gentle introduction
Diego Scataglini
 
Html5, a gentle introduction
Html5, a gentle introduction Html5, a gentle introduction
Html5, a gentle introduction
Diego Scataglini
 
Html5 semantics
Html5 semanticsHtml5 semantics
Html5 semantics
Prashanth Krish
 
46h interaction 1.lesson Hello world
46h interaction 1.lesson Hello world46h interaction 1.lesson Hello world
46h interaction 1.lesson Hello world
hemi46h
 
Html / CSS Presentation
Html / CSS PresentationHtml / CSS Presentation
Html / CSS Presentation
Shawn Calvert
 
Lesson2
Lesson2Lesson2
Lesson2hstryk
 
Html
HtmlHtml
PHP HTML CSS Notes
PHP HTML CSS  NotesPHP HTML CSS  Notes
PHP HTML CSS Notes
Tushar Rajput
 
Learn html elements and structure cheatsheet codecademy
Learn html  elements and structure cheatsheet   codecademyLearn html  elements and structure cheatsheet   codecademy
Learn html elements and structure cheatsheet codecademy
nirmalamanjunath
 
Lesson 3
Lesson 3Lesson 3
Lesson 3hstryk
 
Html
HtmlHtml
Intr to-html-xhtml-1233508169541646-3
Intr to-html-xhtml-1233508169541646-3Intr to-html-xhtml-1233508169541646-3
Intr to-html-xhtml-1233508169541646-3
bluejayjunior
 
Class Intro / HTML Basics
Class Intro / HTML BasicsClass Intro / HTML Basics
Class Intro / HTML BasicsShawn Calvert
 
Html, css and jquery introduction
Html, css and jquery introductionHtml, css and jquery introduction
Html, css and jquery introduction
cncwebworld
 
HTML Semantic Elements
HTML Semantic ElementsHTML Semantic Elements
HTML Semantic Elements
Reema
 
HTML Foundations, part 1
HTML Foundations, part 1HTML Foundations, part 1
HTML Foundations, part 1
Shawn Calvert
 
HTML Notes And Some Attributes
HTML Notes And Some AttributesHTML Notes And Some Attributes
HTML Notes And Some Attributes
HIFZUR RAHMAN
 
Html5 quick-learning-quide
Html5 quick-learning-quideHtml5 quick-learning-quide
Html5 quick-learning-quidePL dream
 
Html5 quick-learning-quide
Html5 quick-learning-quideHtml5 quick-learning-quide
Html5 quick-learning-quideAshok Suragala
 

Similar to HTML5 introduction (20)

Html 5, a gentle introduction
Html 5, a gentle introductionHtml 5, a gentle introduction
Html 5, a gentle introduction
 
Html5, a gentle introduction
Html5, a gentle introduction Html5, a gentle introduction
Html5, a gentle introduction
 
Html5 semantics
Html5 semanticsHtml5 semantics
Html5 semantics
 
46h interaction 1.lesson Hello world
46h interaction 1.lesson Hello world46h interaction 1.lesson Hello world
46h interaction 1.lesson Hello world
 
Html / CSS Presentation
Html / CSS PresentationHtml / CSS Presentation
Html / CSS Presentation
 
Lesson2
Lesson2Lesson2
Lesson2
 
Html
HtmlHtml
Html
 
PHP HTML CSS Notes
PHP HTML CSS  NotesPHP HTML CSS  Notes
PHP HTML CSS Notes
 
Learn html elements and structure cheatsheet codecademy
Learn html  elements and structure cheatsheet   codecademyLearn html  elements and structure cheatsheet   codecademy
Learn html elements and structure cheatsheet codecademy
 
Lesson 3
Lesson 3Lesson 3
Lesson 3
 
Html
HtmlHtml
Html
 
Intr to-html-xhtml-1233508169541646-3
Intr to-html-xhtml-1233508169541646-3Intr to-html-xhtml-1233508169541646-3
Intr to-html-xhtml-1233508169541646-3
 
Class Intro / HTML Basics
Class Intro / HTML BasicsClass Intro / HTML Basics
Class Intro / HTML Basics
 
Html, css and jquery introduction
Html, css and jquery introductionHtml, css and jquery introduction
Html, css and jquery introduction
 
HTML Semantic Elements
HTML Semantic ElementsHTML Semantic Elements
HTML Semantic Elements
 
HTML Foundations, part 1
HTML Foundations, part 1HTML Foundations, part 1
HTML Foundations, part 1
 
HTML Notes And Some Attributes
HTML Notes And Some AttributesHTML Notes And Some Attributes
HTML Notes And Some Attributes
 
Html5 quick-learning-quide
Html5 quick-learning-quideHtml5 quick-learning-quide
Html5 quick-learning-quide
 
Html5 quick learning guide
Html5 quick learning guideHtml5 quick learning guide
Html5 quick learning guide
 
Html5 quick-learning-quide
Html5 quick-learning-quideHtml5 quick-learning-quide
Html5 quick-learning-quide
 

Recently uploaded

Getting started with Amazon Bedrock Studio and Control Tower
Getting started with Amazon Bedrock Studio and Control TowerGetting started with Amazon Bedrock Studio and Control Tower
Getting started with Amazon Bedrock Studio and Control Tower
Vladimir Samoylov
 
Sharpen existing tools or get a new toolbox? Contemporary cluster initiatives...
Sharpen existing tools or get a new toolbox? Contemporary cluster initiatives...Sharpen existing tools or get a new toolbox? Contemporary cluster initiatives...
Sharpen existing tools or get a new toolbox? Contemporary cluster initiatives...
Orkestra
 
Gregory Harris' Civics Presentation.pptx
Gregory Harris' Civics Presentation.pptxGregory Harris' Civics Presentation.pptx
Gregory Harris' Civics Presentation.pptx
gharris9
 
Doctoral Symposium at the 17th IEEE International Conference on Software Test...
Doctoral Symposium at the 17th IEEE International Conference on Software Test...Doctoral Symposium at the 17th IEEE International Conference on Software Test...
Doctoral Symposium at the 17th IEEE International Conference on Software Test...
Sebastiano Panichella
 
Competition and Regulation in Professional Services – KLEINER – June 2024 OEC...
Competition and Regulation in Professional Services – KLEINER – June 2024 OEC...Competition and Regulation in Professional Services – KLEINER – June 2024 OEC...
Competition and Regulation in Professional Services – KLEINER – June 2024 OEC...
OECD Directorate for Financial and Enterprise Affairs
 
Acorn Recovery: Restore IT infra within minutes
Acorn Recovery: Restore IT infra within minutesAcorn Recovery: Restore IT infra within minutes
Acorn Recovery: Restore IT infra within minutes
IP ServerOne
 
María Carolina Martínez - eCommerce Day Colombia 2024
María Carolina Martínez - eCommerce Day Colombia 2024María Carolina Martínez - eCommerce Day Colombia 2024
María Carolina Martínez - eCommerce Day Colombia 2024
eCommerce Institute
 
Supercharge your AI - SSP Industry Breakout Session 2024-v2_1.pdf
Supercharge your AI - SSP Industry Breakout Session 2024-v2_1.pdfSupercharge your AI - SSP Industry Breakout Session 2024-v2_1.pdf
Supercharge your AI - SSP Industry Breakout Session 2024-v2_1.pdf
Access Innovations, Inc.
 
Eureka, I found it! - Special Libraries Association 2021 Presentation
Eureka, I found it! - Special Libraries Association 2021 PresentationEureka, I found it! - Special Libraries Association 2021 Presentation
Eureka, I found it! - Special Libraries Association 2021 Presentation
Access Innovations, Inc.
 
somanykidsbutsofewfathers-140705000023-phpapp02.pptx
somanykidsbutsofewfathers-140705000023-phpapp02.pptxsomanykidsbutsofewfathers-140705000023-phpapp02.pptx
somanykidsbutsofewfathers-140705000023-phpapp02.pptx
Howard Spence
 
Media as a Mind Controlling Strategy In Old and Modern Era
Media as a Mind Controlling Strategy In Old and Modern EraMedia as a Mind Controlling Strategy In Old and Modern Era
Media as a Mind Controlling Strategy In Old and Modern Era
faizulhassanfaiz1670
 
International Workshop on Artificial Intelligence in Software Testing
International Workshop on Artificial Intelligence in Software TestingInternational Workshop on Artificial Intelligence in Software Testing
International Workshop on Artificial Intelligence in Software Testing
Sebastiano Panichella
 
0x01 - Newton's Third Law: Static vs. Dynamic Abusers
0x01 - Newton's Third Law:  Static vs. Dynamic Abusers0x01 - Newton's Third Law:  Static vs. Dynamic Abusers
0x01 - Newton's Third Law: Static vs. Dynamic Abusers
OWASP Beja
 
Bitcoin Lightning wallet and tic-tac-toe game XOXO
Bitcoin Lightning wallet and tic-tac-toe game XOXOBitcoin Lightning wallet and tic-tac-toe game XOXO
Bitcoin Lightning wallet and tic-tac-toe game XOXO
Matjaž Lipuš
 
Bonzo subscription_hjjjjjjjj5hhhhhhh_2024.pdf
Bonzo subscription_hjjjjjjjj5hhhhhhh_2024.pdfBonzo subscription_hjjjjjjjj5hhhhhhh_2024.pdf
Bonzo subscription_hjjjjjjjj5hhhhhhh_2024.pdf
khadija278284
 
Announcement of 18th IEEE International Conference on Software Testing, Verif...
Announcement of 18th IEEE International Conference on Software Testing, Verif...Announcement of 18th IEEE International Conference on Software Testing, Verif...
Announcement of 18th IEEE International Conference on Software Testing, Verif...
Sebastiano Panichella
 
Obesity causes and management and associated medical conditions
Obesity causes and management and associated medical conditionsObesity causes and management and associated medical conditions
Obesity causes and management and associated medical conditions
Faculty of Medicine And Health Sciences
 

Recently uploaded (17)

Getting started with Amazon Bedrock Studio and Control Tower
Getting started with Amazon Bedrock Studio and Control TowerGetting started with Amazon Bedrock Studio and Control Tower
Getting started with Amazon Bedrock Studio and Control Tower
 
Sharpen existing tools or get a new toolbox? Contemporary cluster initiatives...
Sharpen existing tools or get a new toolbox? Contemporary cluster initiatives...Sharpen existing tools or get a new toolbox? Contemporary cluster initiatives...
Sharpen existing tools or get a new toolbox? Contemporary cluster initiatives...
 
Gregory Harris' Civics Presentation.pptx
Gregory Harris' Civics Presentation.pptxGregory Harris' Civics Presentation.pptx
Gregory Harris' Civics Presentation.pptx
 
Doctoral Symposium at the 17th IEEE International Conference on Software Test...
Doctoral Symposium at the 17th IEEE International Conference on Software Test...Doctoral Symposium at the 17th IEEE International Conference on Software Test...
Doctoral Symposium at the 17th IEEE International Conference on Software Test...
 
Competition and Regulation in Professional Services – KLEINER – June 2024 OEC...
Competition and Regulation in Professional Services – KLEINER – June 2024 OEC...Competition and Regulation in Professional Services – KLEINER – June 2024 OEC...
Competition and Regulation in Professional Services – KLEINER – June 2024 OEC...
 
Acorn Recovery: Restore IT infra within minutes
Acorn Recovery: Restore IT infra within minutesAcorn Recovery: Restore IT infra within minutes
Acorn Recovery: Restore IT infra within minutes
 
María Carolina Martínez - eCommerce Day Colombia 2024
María Carolina Martínez - eCommerce Day Colombia 2024María Carolina Martínez - eCommerce Day Colombia 2024
María Carolina Martínez - eCommerce Day Colombia 2024
 
Supercharge your AI - SSP Industry Breakout Session 2024-v2_1.pdf
Supercharge your AI - SSP Industry Breakout Session 2024-v2_1.pdfSupercharge your AI - SSP Industry Breakout Session 2024-v2_1.pdf
Supercharge your AI - SSP Industry Breakout Session 2024-v2_1.pdf
 
Eureka, I found it! - Special Libraries Association 2021 Presentation
Eureka, I found it! - Special Libraries Association 2021 PresentationEureka, I found it! - Special Libraries Association 2021 Presentation
Eureka, I found it! - Special Libraries Association 2021 Presentation
 
somanykidsbutsofewfathers-140705000023-phpapp02.pptx
somanykidsbutsofewfathers-140705000023-phpapp02.pptxsomanykidsbutsofewfathers-140705000023-phpapp02.pptx
somanykidsbutsofewfathers-140705000023-phpapp02.pptx
 
Media as a Mind Controlling Strategy In Old and Modern Era
Media as a Mind Controlling Strategy In Old and Modern EraMedia as a Mind Controlling Strategy In Old and Modern Era
Media as a Mind Controlling Strategy In Old and Modern Era
 
International Workshop on Artificial Intelligence in Software Testing
International Workshop on Artificial Intelligence in Software TestingInternational Workshop on Artificial Intelligence in Software Testing
International Workshop on Artificial Intelligence in Software Testing
 
0x01 - Newton's Third Law: Static vs. Dynamic Abusers
0x01 - Newton's Third Law:  Static vs. Dynamic Abusers0x01 - Newton's Third Law:  Static vs. Dynamic Abusers
0x01 - Newton's Third Law: Static vs. Dynamic Abusers
 
Bitcoin Lightning wallet and tic-tac-toe game XOXO
Bitcoin Lightning wallet and tic-tac-toe game XOXOBitcoin Lightning wallet and tic-tac-toe game XOXO
Bitcoin Lightning wallet and tic-tac-toe game XOXO
 
Bonzo subscription_hjjjjjjjj5hhhhhhh_2024.pdf
Bonzo subscription_hjjjjjjjj5hhhhhhh_2024.pdfBonzo subscription_hjjjjjjjj5hhhhhhh_2024.pdf
Bonzo subscription_hjjjjjjjj5hhhhhhh_2024.pdf
 
Announcement of 18th IEEE International Conference on Software Testing, Verif...
Announcement of 18th IEEE International Conference on Software Testing, Verif...Announcement of 18th IEEE International Conference on Software Testing, Verif...
Announcement of 18th IEEE International Conference on Software Testing, Verif...
 
Obesity causes and management and associated medical conditions
Obesity causes and management and associated medical conditionsObesity causes and management and associated medical conditions
Obesity causes and management and associated medical conditions
 

HTML5 introduction

  • 1.
  • 2.  HTML DOCTYPE  Semantic Elements  Structural Tags  Form Elements
  • 3.  The <!DOCTYPE> declaration is not an HTML tag.  HTML5 is not based on SGML.  Tip: Always add the <!DOCTYPE> declaration to your HTML documents, so that the browser knows what type of document to expect.
  • 4.  The purpose of a DTD (Document Type Definition) is to define the legal building blocks of an XML document.  A DTD defines the document structure with a list of legal elements and attributes.  The Standard Generalized Markup Language is for defining generalized markup languages for documents.
  • 5.  Semantics means (from Ancient Greek), is the study of meaning.  Semantic elements are elements with a meaning. Examples of non-semantic elements: <div> and <span> - Tells nothing about its content. Examples of semantic elements: <form>, <table>, and <img> - Clearly defines its content.
  • 6.  The <section> element represents a generic section of a document or application.  According to W3C's HTML5 documentation: "A section is a thematic grouping of content, typically with a heading."  A Web site's home page could be split into sections for introduction, content, and contact information.  With Section elements, you can use h1 elements through out, without having to worry about whether a particular section is at the top level, the second level, the third level and so on.
  • 7.  The article element represents a complete, or 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.
  • 8. <section id="main"> <article> <!-- first blog post content goes here --> </article> <article> <!-- second blog post content goes here --> </article> <article> <!-- third blog post content goes here --> </article> </section>
  • 10.  Typical Page Structure  Header (or masthead) at the top of the page, usually containing the top level heading of the page, and/or a company logo. This is the big bold statement at the top of the page that says what the web site is, and who it belongs to.  Main content column, which holds the main content of functionality you are here to use.  One of more sidebars, holding tributary content that is either related to that page's main content and changes as new pages are loaded (eg related links), or is always relevant and persists across the whole site (eg "your basket" information on an e-commerce site).
  • 11.  Navigation menu going across the page or down the page in a column. This often put in a sidebar, or may form part of the header.  A footer that goes across the bottom of the site and contains secondary information such as copyright information and contact details.
  • 12.
  • 13.
  • 14.
  • 15.  <body> › <div id="header"> › <!-- header content goes in here --> › </div> › <div id="nav"> › <!-- navigation menu goes in here --> </div> <div id="sidebar1">  <!-- sidebar content goes in here --> </div> <div id="main">  <!-- main page content goes in here --> </div> <div id="sidebar2">  <!-- sidebar content goes in here --> </div> <div id="footer">  <!-- footer content goes in here --> </div>  </body>
  • 16.  <header>: Used to contain the header content of a site.  <footer>: Contains the footer content of a site.  <nav>: Contains the navigation menu, or other navigation functionality for the page.  <article>: Contains a standalone piece of content that would make sense if syndicated as an RSS item, for example a news item.  <section>: Used to either group different articles into different purposes or subjects, or to define the different sections of a single article.  <aside>: Defines a block of content that is related to the main content around it, but not central to the flow of it.
  • 17.
  • 18. <body> <header> <!-- header content goes in here --> </header> <nav> <!-- navigation menu goes in here --> </nav> <section id="sidebar1"> <!-- sidebar content goes in here --> </section> <section id="main"> <!-- main page content goes in here --> </section> <aside> <!-- aside content goes in here --> </aside> <footer> <!-- footer content goes in here --> </footer> </body>
  • 19.  The <nav> element is for marking up the navigation links or other constructs (eg a search form) that will take you to different pages of the current site, or different areas of the current page.  Other links, such as sponsored links, do not count. You can of course include headings and other structuring elements inside the <nav>, but it's not compulsory.
  • 20.  <aside> element to mark-up the 2nd sidebar: the one containing latest gigs and contact details.  <aside> is for marking up pieces of information that are related to the main flow, but don't fit in to it directly.  Other good choices for an <aside> would be information about the author of the blog post(s), a band biography, or a band discography with links to buy their albums.
  • 21.  An HTML element in a web page may not be recognised by browsers.  By default the browser will just treat it like a <span>, i.e., an anonymous inline element.  Most of the HTML5 elements we have looked at are supposed to behave like block elements, therefore the easiest way to make them behave properly in older browsers is by setting them to display: block; in your CSS.  You can do this by including the following CSS rule at the top of your CSS, whether it is contained in the head of your HTML file, or an external CSS file.
  • 22.  article, section, aside, hgroup, nav, header, footer, figure, figcaption { display: block; } Note: for IE 6 & below <script> document.createElement('article'); document.createElement('section'); document.createElement('aside'); document.createElement('hgroup'); document.createElement('nav'); document.createElement('header'); document.createElement('footer'); document.createElement('figure'); document.createElement('figcaption'); </script>
  • 23.  The <form> element represents a user- submittable form. <form action="http://www.google.com/search" method="get"> <label>Google: <input type="search" name="q"> <input type="submit" value="Search..."> </form>