This is the answer to "How to validate HTML and CSS?"
You can use online validation or a chrome extension. Your web page must be running on the internet to use online validation.
The URL for the online HTML Validation is: https://validator.w3.org.
Go to the chrome app store and Search for html validator (with Extensions selected) or go directly to the extension: Html Validator.
You will find the validation issues listed in Chrome Dev Tools which you can get to by right-clicking and selecting Inspect. There will be a new tab named HTML Validator that will show problems with HTML.
The gif below show an analysis of the google search page.
There are online and chrome extension options for CSS Validation.
Copy URL into buffer and test it at this location: https://jigsaw.w3.org/css-validator/
The picture below shows a CSS validation of the google search page.
Go to the chrome app store and Search for html validator (with Extensions selected) or go directly to the extension: Style Validator.
Click on the extension icon in Chrome to see CSS errors.