Giter VIP home page Giter VIP logo

phase-0-css-issue-bot-9000's Introduction

CSS Validation Lab: Issue Bot 9000

Learning Goals

  • Change invalid CSS to valid CSS

Introduction

Although today's browsers are becoming more capable of handing errors in CSS, some errors are not always caught gracefully. This variable can make it extremely difficult to apply style or layout consistently. What can be done to quickly scan our CSS documents for issues? Let's practice using the W3C's CSS Validator!

Getting Started

Fork and clone this lesson into your local environment. Navigate into its directory in the terminal, then run code . to open the files in Visual Studio Code. Run npm test as you go to see your test progress.

Change Invalid CSS to Valid CSS

In this lesson, we will be taking the invalid CSS in css/style.css and changing it to valid.

  1. Open index.html in your browser. Notice how our styles don't look quite right?
  2. Open css/style.css in your text editor.
  3. Visit the W3C CSS validator http://jigsaw.w3.org/css-validator/#validate_by_input. If not already selected, click on the tab labeled "By direct input".
  4. Copy the code from css/style.css and paste it into the text area. Click the "Check" button.
  5. Use the error messages to correct the CSS.
  6. Repeat steps 3-5 until your readout states "Congratulations! No Error Found.".

Remember to check your progress in index.html in your browser!

Conclusion

With a CSS validator, you can work your way through cleaning up errors in a CSS document and reduce the likelihood of display errors across platforms. Using the W3C CSS validator will help you quickly and efficiently troubleshoot your CSS.

Resources

phase-0-css-issue-bot-9000's People

Contributors

jongrover avatar lizbur10 avatar cjbrock avatar maxwellbenton avatar ihollander avatar jlboba avatar professor-ben avatar annjohn avatar fs-lms-test-bot avatar jenmyers avatar sgharms avatar fislabstest avatar dependabot[bot] avatar louisasm 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.