GitHunt
CL

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:

  1. HTML review per section to use Semantic HTML whenever possible
  2. CSS update based on new HTML to clear code
  3. Final review, last changes and README

HTML

Changes made per section

HEAD Section

  1. Removed GB from lang because the website is for a US based company not a UK one
  2. Removed closing / from meta charset
  3. Changed the title of the website

HEADER Section

  1. Substitued div header class with a header tag
  2. Substitued div for the navbar with a nav tag
  3. Removed span class not needed to target the contet in CSS

HERO Section

  1. Substitued div with a section tag
  2. Specified class "hero-img" instead of just "hero"
  3. Moved img to HTML instead of CSS background to add an alt attribute

MAIN section

  1. Substitued div tag with main tag to contain all 3 articles
  2. Subsituted div tag with article tags for all 3 cards
  3. Removed 3 articles classes and changed with one class named "article-card"
  4. Added the missing id on the first article to use it on the nav bar
  5. Img Alt added to all 3 articles imgs

SIDEBAR section

  1. Substitued div tag with an aside tag to contain sidebar content
  2. Removed 3 articles classes and changed with one class named "sidebar-card"
  3. Img Alt added to all 3 articles icons
  4. Img closing tag removed from the Cost mgmt icon img

FOOTER section

  1. Substitued div tag with footer tag to contain footer content

  2. Substitued footer class with footer tag semantic element

  3. Added span tag to the emoji to describe role and content

  4. Final review and section comments to reorganize content

CSS

All changes made

  1. Substitued header class with header tag on all instances
  2. Substitued div for the navbar with a nav tag
  3. Removed span class seo to target the content just using header h1 span
  4. Substitued hero class with hero-img class
  5. Moved hero-class img to hTML and targeted hero-img img to apply styling
  6. Removed all articles classes as they were all identical and changed with one class named "article-card"
  7. Targeted img and h2 of artcle class and removed all identical properties
  8. Removed benefits class and changed for more generic sidebar class
  9. Removed all benefit classes as they were all identical and changed with one class named "sidebar-card"
  10. 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.

Final result

alt text

Contributors

Created November 18, 2022
Updated November 28, 2022