Giter Site home page Giter Site logo

uosyph / w3c-validator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alx-tools/w3c-validator

0.0 0.0 0.0 18 KB

A script that checks the conformance of HTML, CSS, and SVG files against W3C standards. This fork enhances the original W3C-Validator by adding wildcard support, allowing you to validate multiple files at once.

Python 100.00%
python script validation validator w3c w3c-validation w3c-validator

w3c-validator's Introduction

W3C validator for Holberton School

A script that checks the conformance of HTML, CSS, and SVG files against W3C standards.

This fork enhances the original W3C-Validator by adding wildcard support, allowing you to validate multiple files at once.

Based on 1 API:

Requirements

Quickstart

  1. Clone this repo
git clone https://github.com/uosyph/W3C-Validator.git
  1. Run the validator command from within

Single file:

./w3c_validator.py index.html
./w3c_validator.py css/styles.css

Multiple files:

./w3c_validator.py index.html article.html css/styles.css
./w3c_validator.py *.html css/*.css

All errors are printed in STDERR; Exit status = # of errors (0 on success)

Troubleshooting

  • Error: bad interpreter: No such file or directory If you get this error you might not have Python installed correctly; or the system PATH might not be updated to reflect the installed Python version.

Assuming that Python 3 is indeed installed, you can try to run it like so:

python3 w3c_validator.py index.html
  • Error: ModuleNotFoundError: No module named 'requests' If you get this error you do not have the module requests installed in your system.

You can install requests using pip:

python3 -m pip install requests

If you don't have pip installed, you can get it here.

w3c-validator's People

Contributors

jmmarco avatar papamuziko avatar uosyph avatar johncoleman83 avatar vrloki avatar yeungegs 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.