Clelia-M/accessibility-challenge-w1
Marketing agency website implemented using accessible elements (HTML&CSS) as part of the Trilogy Bootcamp - Challenge Week 1
Accessibility Challenge - Bootcamp Module 1
Table of Contents
Description
Scope of the project: to modify the code contained in the starter folder to folllow best practice on accessibility and semantic HTML. (Code Refactor Challenge)
User story:
AS A marketing agency
I WANT a codebase that follows accessibility standards
SO THAT our own site is optimized for search engines
Workflow:
- HTML review per section to use Semantic HTML whenever possible
- CSS update based on new HTML to clear code
- Final review, last changes and README
HTML
Changes made per section
HEAD Section
- Removed GB from lang because the website is for a US based company not a UK one
- Removed closing / from meta charset
- Changed the title of the website
HEADER Section
- Substitued div header class with a header tag
- Substitued div for the navbar with a nav tag
- Removed span class not needed to target the contet in CSS
HERO Section
- Substitued div with a section tag
- Specified class "hero-img" instead of just "hero"
- Moved img to HTML instead of CSS background to add an alt attribute
MAIN section
- Substitued div tag with main tag to contain all 3 articles
- Subsituted div tag with article tags for all 3 cards
- Removed 3 articles classes and changed with one class named "article-card"
- Added the missing id on the first article to use it on the nav bar
- Img Alt added to all 3 articles imgs
SIDEBAR section
- Substitued div tag with an aside tag to contain sidebar content
- Removed 3 articles classes and changed with one class named "sidebar-card"
- Img Alt added to all 3 articles icons
- Img closing tag removed from the Cost mgmt icon img
FOOTER section
-
Substitued div tag with footer tag to contain footer content
-
Substitued footer class with footer tag semantic element
-
Added span tag to the emoji to describe role and content
-
Final review and section comments to reorganize content
CSS
All changes made
- Substitued header class with header tag on all instances
- Substitued div for the navbar with a nav tag
- Removed span class seo to target the content just using header h1 span
- Substitued hero class with hero-img class
- Moved hero-class img to hTML and targeted hero-img img to apply styling
- Removed all articles classes as they were all identical and changed with one class named "article-card"
- Targeted img and h2 of artcle class and removed all identical properties
- Removed benefits class and changed for more generic sidebar class
- Removed all benefit classes as they were all identical and changed with one class named "sidebar-card"
- Substitued footer class with footer semantic tag element
Credits
Starter code provided as part of the Module challenge for the challenge for the Trilogy Skills Bootcamp in Front-End Web Development.