Skip to content

Latest commit

 

History

History
54 lines (39 loc) · 1.4 KB

README.md

File metadata and controls

54 lines (39 loc) · 1.4 KB

W3C validator for Holberton School

For HTML, CSS and SVG files

Based on 1 API:

Requirements

Quickstart

  1. Clone this repo
git clone https://github.com/holbertonschool/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

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.