Coder Social home page Coder Social logo

ahmedalkh / code-refactor-horiseon Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 53.49 MB

HTML CSS Git Challenge: Code Refactor

Home Page: https://ahmedalkh.github.io/code-refactor-horiseon/

CSS 36.85% HTML 63.15%
html css accessibility optimization buisness refactor

code-refactor-horiseon's Introduction

code-refactor-horiseon

HTML CSS Git Challenge: Code Refactor

Objective:

Refactor an existing site to make it more accessible and optimized for search engines.

screenshot

Step 1: Modify HTML

Added comments to organise different sections of code in the index.html file.

  • Head Section -
  1. <title></title> changed from "website" to "Horiseon - Online Buisness Developement".
  • Header/Navigation -
  1. Changed div class="header" to header.

  2. Changed div to nav.

  3. Fixed "Search Engine Optimization" navigation link by adding "id" to the related portion in the content section.

  • Content Section -
  1. Added alt attributes to images.
  • Benefits Section -
  1. Deleted unessescary img attribute for cost management line 88.

  2. Added alt attributes to images.

  • Footer Section -
  1. Changed div class="footer" to footer.

  2. Changed the year 2019 to 2021.

Step 2: Modify CSS

  1. Adding comments to organize different sections.

  2. Adjusting code the match changes to HTML. EX. div to nav

  3. Moving selectors that are out of place into correct sections.

  4. Compressing code by removing duplicates. (Keep it DRY).

ADDITIONAL HTML CHANGES

  1. Changed classes in content section to all be class="content-section"

  2. Changed classes in benefits section to all be class="benefits-section"

code-refactor-horiseon's People

Contributors

ahmedalkh avatar

Watchers

 avatar

Forkers

lisaevermore

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.