SlideShare ist ein Scribd-Unternehmen logo
1 von 30
HTML5 AND CSS
                 <Aside>




Explaining the “Aside” function in HTML5
and how to use Cascading Style Sheets(CSS)
             to style HTML5
PURPOSE

To explain the “Aside” function in HTML5 for the everyday person. To demonstrate
 how Cascading style sheets (CSS) can be used to manipulate code within HTML5.
To show how to style code so that it adheres to the web accessibility standards required
                                  for modern day use
WHAT IS HTML5 ?
HTML5 is a cooperation between the World Wide Web Consortium (W3C) and the Web Hypertext
Application Technology Working Group (WHATWG).
WHATWG was working with web forms and applications, and W3C was working with XHTML 2.0. In
2006, they decided to cooperate and create a new version of HTML.
Some rules for HTML5 were established:
New features should be based on HTML, CSS, DOM, and JavaScript
Reduce the need for external plugins (like Flash)
Better error handling
More markup to replace scripting
HTML5 should be device independent
The development process should be visible to the public
WEB ACCESSIBILITY
                 STANDARDS
                          The Web Accessibility Initiative - WAI
WAI (created by W3C, in 1997) is a set of guidelines intended for web developers, authors,
 and designers- about how to make the web content accessible to people with disabilities.
  The goal of these guidelines is accessibility, but they will also help make web contents
 available to more browsers (voice browsers, cell phones, hand-held devices), and to more
users working in difficult environments (hands-free, strong light, darkness, bad sight, heavy
                                           noise).
CASCADING STYLE SHEETS
             (CSS)
              CSS defines HOW HTML elements are to be displayed.
CSS describes the visual style (appearance, layout, colour, fonts) of HTML elements.
  CSS was designed to separate document layout from document content (which
        greatly improved HTML flexibility and reduced HTML complexity).
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. Just because some content appears to the left or right of the
main content isn‟t enough reason to use the aside element. Ask yourself if the content
 within the aside can be removed without reducing the meaning of the main content.
              Pullquotes are an example of tangentially related content.
LETS LOOK AT SOME
   HTML5 CODE
OUR HTML5 PAGE
The page has the correct doctype
format for HTML 5. It contains a
Title tag, a body, an article, a
paragraph tag and an aside tag. The
<p>tag contains a paragraph about a
current craze – Gangnam Style -
taken from wikipedia.
THE ASIDE TAG
The aside tag lives within the article
tag. The content of the tag is not
essential information about the craze,
but is interesting enough to note a
mention. Information that appears
within this tag is not meant to be vital
information regarding a topic.
LETS LOOK AT OUR CSS
        PAGE
GANGNAM CSS
Currently empty. This is the page that
will create style within the page.
LETS LOOK AT OUR HTML
        PAGE
GANGNAM HTML
This is how our page looks like
without any CSS to style it. You
cannot tell the difference between the
text inside the article tag and inside
the aside tag
LETS ADD SOME CODE TO
     OUR CSS PAGE
GANGNAM CSS
We have added some CSS code to
change the aside tag, we have given it
an orange colour and aligned it in the
centre of the page.
GANGNAM HTML
This is how our page looks like with
the CSS changing it.
LETS ADD SOME MORE
CODE TO OUR CSS PAGE
GANGNAM CSS
We have added some more CSS code
to change the aside tag, we have
changed the colour to blue, changed
the font family to Arial, and created a
border with padding and a margin.
GANGNAM HTML
This is how our page looks like with
the CSS changing it. It looks more
highlighted now; more of a
interesting tidbit.
GANGNAM HTML
This is how our page looks like with
the CSS changing it. It looks more
highlighted now; more of a
interesting titbit. We‟ve now added
another paragraph in to highlight the
aside sitting in the middle.
LETS VALIDATE OUR CODE
GANGNAM HTML
We have validated our HTML and it
is now valid in HTML5.
GANGNAM CSS
We have validated our CSS Code and
it is now successfully valid.
LETS TEST OUR PAGE IN
 DIFFERENT BROWSERS
PAGE IN INTERNET   PAGE IN GOOGLE
   EXPLORER           CHROME
PAGE IN MOZILLA
    FIREFOX       PAGE IN OPERA
WEB ACCESSIBILITY
                   STANDARDS
                                         WCAG 2.0 Guidelines
 Principle 1: Perceivable - Information and user interface components must be presentable to users in
                                        ways they can perceive.
         Principle 2: Operable - User interface components and navigation must be operable.
Principle 3: Understandable - Information and the operation of user interface must be understandable.
Principle 4: Robust - Content must be robust enough that it can be interpreted reliably by a wide variety
                            of user agents, including assistive technologies.
HOW THE PAGE MEETS WCAG
     2.0 GUIDELINES
                   Principle 1: Perceivable – The page is all text.
           The Principle 2: Operable – There are no operable interfaces
Principle 3: Understandable – The information is presented in an easy to understand
                                       manor.
 Principle 4: Robust – The page can be loaded up in a variety of browsers and still
                                  keep its format.
SUMMARY

  We have created a webpage using HTML5. We have created styled it
using Cascading style sheets(CSS). We have shown how the concept of
„aside‟ works within HTML and explained the context of where it would
best be used. We have shown the WCAG 2.0 Guidelines – and how the
              page we created fits in to those guidelines.
REFERENCES
            http://www.w3schools.com/html/html5_intro.asp

        http://www.w3schools.com/quality/quality_accessibility.asp

              http://html5doctor.com/understanding-aside/

http://www.anthonycalzadilla.com/2010/08/html5-section-aside-header-nav-
               footer-elements-not-as-obvious-as-they-sound/

              http://en.wikipedia.org/wiki/Gangnam_Style

Weitere ähnliche Inhalte

Was ist angesagt?

GDI Seattle Intermediate HTML and CSS Class 1
GDI Seattle Intermediate HTML and CSS Class 1GDI Seattle Intermediate HTML and CSS Class 1
GDI Seattle Intermediate HTML and CSS Class 1Heather Rock
 
CSS Eye for the Programmer Guy
CSS Eye for the Programmer GuyCSS Eye for the Programmer Guy
CSS Eye for the Programmer GuyDennis Slade Jr.
 
Presentation about html5 css3
Presentation about html5 css3Presentation about html5 css3
Presentation about html5 css3Gopi A
 
HTML CSS and Web Development
HTML CSS and Web DevelopmentHTML CSS and Web Development
HTML CSS and Web DevelopmentRahul Mishra
 
Front End Best Practices
Front End Best PracticesFront End Best Practices
Front End Best PracticesHolger Bartel
 
Web development using HTML and CSS
Web development using HTML and CSSWeb development using HTML and CSS
Web development using HTML and CSSSiddhantSingh980217
 
Web Design Primer Sample - HTML CSS JS
Web Design Primer Sample - HTML CSS JSWeb Design Primer Sample - HTML CSS JS
Web Design Primer Sample - HTML CSS JSBootstrap Creative
 
Best Web Designing Courses- Classes in Pune | Web Designing Training in pune ...
Best Web Designing Courses- Classes in Pune | Web Designing Training in pune ...Best Web Designing Courses- Classes in Pune | Web Designing Training in pune ...
Best Web Designing Courses- Classes in Pune | Web Designing Training in pune ...Mukeshkumar Prajapati
 
Ppt of web development
Ppt of web developmentPpt of web development
Ppt of web developmentbethanygfair
 
Understand front end developer
Understand front end developerUnderstand front end developer
Understand front end developerHsuan Fu Lien
 
Introduction to the Web and HTML
Introduction to the Web and HTMLIntroduction to the Web and HTML
Introduction to the Web and HTMLSiddharthBorderwala
 
Making Your Own CSS Framework
Making Your Own CSS FrameworkMaking Your Own CSS Framework
Making Your Own CSS FrameworkDan Sagisser
 
Web Design 101
Web Design 101Web Design 101
Web Design 101T.S. Lim
 
Web development | Derin Dolen
Web development | Derin Dolen Web development | Derin Dolen
Web development | Derin Dolen Derin Dolen
 
ARC WEB DESIGNING INSTITUTE | ISO Certified Web Designing Course
ARC WEB DESIGNING INSTITUTE | ISO Certified Web Designing CourseARC WEB DESIGNING INSTITUTE | ISO Certified Web Designing Course
ARC WEB DESIGNING INSTITUTE | ISO Certified Web Designing CourseArcEducation Ambala
 

Was ist angesagt? (20)

GDI Seattle Intermediate HTML and CSS Class 1
GDI Seattle Intermediate HTML and CSS Class 1GDI Seattle Intermediate HTML and CSS Class 1
GDI Seattle Intermediate HTML and CSS Class 1
 
CSS Eye for the Programmer Guy
CSS Eye for the Programmer GuyCSS Eye for the Programmer Guy
CSS Eye for the Programmer Guy
 
Presentation about html5 css3
Presentation about html5 css3Presentation about html5 css3
Presentation about html5 css3
 
HTML CSS and Web Development
HTML CSS and Web DevelopmentHTML CSS and Web Development
HTML CSS and Web Development
 
HTML5 & CSS3
HTML5 & CSS3 HTML5 & CSS3
HTML5 & CSS3
 
Front End Best Practices
Front End Best PracticesFront End Best Practices
Front End Best Practices
 
Web development using HTML and CSS
Web development using HTML and CSSWeb development using HTML and CSS
Web development using HTML and CSS
 
Web Design Primer Sample - HTML CSS JS
Web Design Primer Sample - HTML CSS JSWeb Design Primer Sample - HTML CSS JS
Web Design Primer Sample - HTML CSS JS
 
Best Web Designing Courses- Classes in Pune | Web Designing Training in pune ...
Best Web Designing Courses- Classes in Pune | Web Designing Training in pune ...Best Web Designing Courses- Classes in Pune | Web Designing Training in pune ...
Best Web Designing Courses- Classes in Pune | Web Designing Training in pune ...
 
Ppt of web development
Ppt of web developmentPpt of web development
Ppt of web development
 
Understand front end developer
Understand front end developerUnderstand front end developer
Understand front end developer
 
The Dark Arts of CSS
The Dark Arts of CSSThe Dark Arts of CSS
The Dark Arts of CSS
 
Introduction to the Web and HTML
Introduction to the Web and HTMLIntroduction to the Web and HTML
Introduction to the Web and HTML
 
Using Core Themes in Drupal 8
Using Core Themes in Drupal 8Using Core Themes in Drupal 8
Using Core Themes in Drupal 8
 
Slides bootstrap-4
Slides bootstrap-4Slides bootstrap-4
Slides bootstrap-4
 
Making Your Own CSS Framework
Making Your Own CSS FrameworkMaking Your Own CSS Framework
Making Your Own CSS Framework
 
Web Design 101
Web Design 101Web Design 101
Web Design 101
 
Web development | Derin Dolen
Web development | Derin Dolen Web development | Derin Dolen
Web development | Derin Dolen
 
Web Designing
Web Designing Web Designing
Web Designing
 
ARC WEB DESIGNING INSTITUTE | ISO Certified Web Designing Course
ARC WEB DESIGNING INSTITUTE | ISO Certified Web Designing CourseARC WEB DESIGNING INSTITUTE | ISO Certified Web Designing Course
ARC WEB DESIGNING INSTITUTE | ISO Certified Web Designing Course
 

Ähnlich wie Aside, within HTML5 + CSS

Ähnlich wie Aside, within HTML5 + CSS (20)

Wa html5-pdf
Wa html5-pdfWa html5-pdf
Wa html5-pdf
 
Wa html5-pdf
Wa html5-pdfWa html5-pdf
Wa html5-pdf
 
Wa html5-pdf
Wa html5-pdfWa html5-pdf
Wa html5-pdf
 
Wa html5-pdf
Wa html5-pdfWa html5-pdf
Wa html5-pdf
 
A Complete Guide to Frontend - UI Developer
A Complete Guide to Frontend - UI DeveloperA Complete Guide to Frontend - UI Developer
A Complete Guide to Frontend - UI Developer
 
web designing course bangalore
web designing course bangaloreweb designing course bangalore
web designing course bangalore
 
HTML 5 Complete Reference
HTML 5 Complete ReferenceHTML 5 Complete Reference
HTML 5 Complete Reference
 
ARTICULOENINGLES
ARTICULOENINGLESARTICULOENINGLES
ARTICULOENINGLES
 
HTML 5
HTML 5HTML 5
HTML 5
 
HTML5- The Boosting Era of Web Development
HTML5- The Boosting Era of Web DevelopmentHTML5- The Boosting Era of Web Development
HTML5- The Boosting Era of Web Development
 
Html5
Html5Html5
Html5
 
Html5
Html5Html5
Html5
 
Presentation 1 [autosaved]
Presentation 1 [autosaved]Presentation 1 [autosaved]
Presentation 1 [autosaved]
 
Html5 basics
Html5 basicsHtml5 basics
Html5 basics
 
A practical guide to building websites with HTML5 & CSS3
A practical guide to building websites with HTML5 & CSS3A practical guide to building websites with HTML5 & CSS3
A practical guide to building websites with HTML5 & CSS3
 
Web designing course bangalore
Web designing course bangaloreWeb designing course bangalore
Web designing course bangalore
 
WordPress North East (Jan 2021) ~ SEO Fundamentals For WordPress
WordPress North East (Jan 2021) ~ SEO Fundamentals For WordPressWordPress North East (Jan 2021) ~ SEO Fundamentals For WordPress
WordPress North East (Jan 2021) ~ SEO Fundamentals For WordPress
 
Lean And Clean! Building A Site With Web Standards
Lean And Clean! Building A Site With Web StandardsLean And Clean! Building A Site With Web Standards
Lean And Clean! Building A Site With Web Standards
 
Lean And Clean! Building A Site With
Lean And Clean! Building A Site WithLean And Clean! Building A Site With
Lean And Clean! Building A Site With
 
Teched Inetrgation ppt and lering in simple
Teched Inetrgation ppt  and lering in simpleTeched Inetrgation ppt  and lering in simple
Teched Inetrgation ppt and lering in simple
 

Kürzlich hochgeladen

ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Zilliz
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...apidays
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Jeffrey Haguewood
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxRemote DBA Services
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodJuan lago vázquez
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelDeepika Singh
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businesspanagenda
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistandanishmna97
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWERMadyBayot
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...Zilliz
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Victor Rentea
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdfSandro Moreira
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Victor Rentea
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontologyjohnbeverley2021
 

Kürzlich hochgeladen (20)

ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 

Aside, within HTML5 + CSS

  • 1. HTML5 AND CSS <Aside> Explaining the “Aside” function in HTML5 and how to use Cascading Style Sheets(CSS) to style HTML5
  • 2. PURPOSE To explain the “Aside” function in HTML5 for the everyday person. To demonstrate how Cascading style sheets (CSS) can be used to manipulate code within HTML5. To show how to style code so that it adheres to the web accessibility standards required for modern day use
  • 3. WHAT IS HTML5 ? HTML5 is a cooperation between the World Wide Web Consortium (W3C) and the Web Hypertext Application Technology Working Group (WHATWG). WHATWG was working with web forms and applications, and W3C was working with XHTML 2.0. In 2006, they decided to cooperate and create a new version of HTML. Some rules for HTML5 were established: New features should be based on HTML, CSS, DOM, and JavaScript Reduce the need for external plugins (like Flash) Better error handling More markup to replace scripting HTML5 should be device independent The development process should be visible to the public
  • 4. WEB ACCESSIBILITY STANDARDS The Web Accessibility Initiative - WAI WAI (created by W3C, in 1997) is a set of guidelines intended for web developers, authors, and designers- about how to make the web content accessible to people with disabilities. The goal of these guidelines is accessibility, but they will also help make web contents available to more browsers (voice browsers, cell phones, hand-held devices), and to more users working in difficult environments (hands-free, strong light, darkness, bad sight, heavy noise).
  • 5. CASCADING STYLE SHEETS (CSS) CSS defines HOW HTML elements are to be displayed. CSS describes the visual style (appearance, layout, colour, fonts) of HTML elements. CSS was designed to separate document layout from document content (which greatly improved HTML flexibility and reduced HTML complexity).
  • 6. 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. Just because some content appears to the left or right of the main content isn‟t enough reason to use the aside element. Ask yourself if the content within the aside can be removed without reducing the meaning of the main content. Pullquotes are an example of tangentially related content.
  • 7. LETS LOOK AT SOME HTML5 CODE
  • 8. OUR HTML5 PAGE The page has the correct doctype format for HTML 5. It contains a Title tag, a body, an article, a paragraph tag and an aside tag. The <p>tag contains a paragraph about a current craze – Gangnam Style - taken from wikipedia.
  • 9. THE ASIDE TAG The aside tag lives within the article tag. The content of the tag is not essential information about the craze, but is interesting enough to note a mention. Information that appears within this tag is not meant to be vital information regarding a topic.
  • 10. LETS LOOK AT OUR CSS PAGE
  • 11. GANGNAM CSS Currently empty. This is the page that will create style within the page.
  • 12. LETS LOOK AT OUR HTML PAGE
  • 13. GANGNAM HTML This is how our page looks like without any CSS to style it. You cannot tell the difference between the text inside the article tag and inside the aside tag
  • 14. LETS ADD SOME CODE TO OUR CSS PAGE
  • 15. GANGNAM CSS We have added some CSS code to change the aside tag, we have given it an orange colour and aligned it in the centre of the page.
  • 16. GANGNAM HTML This is how our page looks like with the CSS changing it.
  • 17. LETS ADD SOME MORE CODE TO OUR CSS PAGE
  • 18. GANGNAM CSS We have added some more CSS code to change the aside tag, we have changed the colour to blue, changed the font family to Arial, and created a border with padding and a margin.
  • 19. GANGNAM HTML This is how our page looks like with the CSS changing it. It looks more highlighted now; more of a interesting tidbit.
  • 20. GANGNAM HTML This is how our page looks like with the CSS changing it. It looks more highlighted now; more of a interesting titbit. We‟ve now added another paragraph in to highlight the aside sitting in the middle.
  • 22. GANGNAM HTML We have validated our HTML and it is now valid in HTML5.
  • 23. GANGNAM CSS We have validated our CSS Code and it is now successfully valid.
  • 24. LETS TEST OUR PAGE IN DIFFERENT BROWSERS
  • 25. PAGE IN INTERNET PAGE IN GOOGLE EXPLORER CHROME
  • 26. PAGE IN MOZILLA FIREFOX PAGE IN OPERA
  • 27. WEB ACCESSIBILITY STANDARDS WCAG 2.0 Guidelines Principle 1: Perceivable - Information and user interface components must be presentable to users in ways they can perceive. Principle 2: Operable - User interface components and navigation must be operable. Principle 3: Understandable - Information and the operation of user interface must be understandable. Principle 4: Robust - Content must be robust enough that it can be interpreted reliably by a wide variety of user agents, including assistive technologies.
  • 28. HOW THE PAGE MEETS WCAG 2.0 GUIDELINES Principle 1: Perceivable – The page is all text. The Principle 2: Operable – There are no operable interfaces Principle 3: Understandable – The information is presented in an easy to understand manor. Principle 4: Robust – The page can be loaded up in a variety of browsers and still keep its format.
  • 29. SUMMARY We have created a webpage using HTML5. We have created styled it using Cascading style sheets(CSS). We have shown how the concept of „aside‟ works within HTML and explained the context of where it would best be used. We have shown the WCAG 2.0 Guidelines – and how the page we created fits in to those guidelines.
  • 30. REFERENCES http://www.w3schools.com/html/html5_intro.asp http://www.w3schools.com/quality/quality_accessibility.asp http://html5doctor.com/understanding-aside/ http://www.anthonycalzadilla.com/2010/08/html5-section-aside-header-nav- footer-elements-not-as-obvious-as-they-sound/ http://en.wikipedia.org/wiki/Gangnam_Style