Git Product home page Git Product logo

homework-1-code-refactor's Introduction

Homework-1-Code-Refactor

Included in this repository is an html file and a linked css file that contain an example layout for an example client's site. The original files were copied from a
homework repository with the intention of editing the code inside to be more readable, accessible, and more properly structured. This editing project was completed
by Caleb Deal with no outside contributions to the repository's contents.

Readability

Nearly every element in the html file was a <div> or contained inside a <div>. For readability the first step was to
replace them all with semantic tags where possible. These tags included <nav>, <aside>, <main>, and <section>, and by
the end each major portion of the document was much more clearly labelled by its tag. For a similar purpose, each major
element was also commented on to make clear what each section of the document contained.

Accessability

The most obvious and important contribution to accessability on the page was the addition of alt text for each img element,
where there was none before. This alone made the document far more accessible.

Structure

The major change to structure in this editing project was the consolidation of many redundant css selectors and classes of
html elements. This greatly reduced the length of the stylesheet and would greatly help any future developers looking to
make changes to the site's style. Where before they would ave had to consolidate or else manipulate many different classes
now there are far more reasonable groups to accomplish the same thing in much less time.

homework-1-code-refactor's People

Contributors

cddeal12 avatar

Watchers

 avatar

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.