Prompt normal validator for HTML. And then I use this: validome.org . He doesn't even know the galleryimg = "false" tags on img and color on hr. They show that they are not the parameters of these tags at all!
- freeformatter.com/html-validator.html - Anovoselof
2 answers
http://validator.w3.org Regarding the attribute of what you asked, it is unique to IE, and is an attribute that does not meet the standards.
- Aha saw this, the principle of work seems to me identical. (output interval for sure). It's just that they are very picky . Let us close by /> - I_CaR
- the standard is the standard - zloctb
I use the SublimeLinter-html-tidy plugin embedded in Sublime Text 3. This is convenient because errors and outdated habits are highlighted right while writing code. As I did before: after the HTML page began to function, as it was required of, copy-paste code into the validator and detect a lot of errors of the same type, I had to massively edit my own inaccuracies. With the use of SublimeLinter-html-tidy, I correct all the shortcomings on the go, remembering how to avoid it.
If any error is detected in the HTML markup, a colored circle appears to the left of the line number, and comments appear in the Status Bar, as in the validator. Examples:
As you can see, the HTML specification is supported through the use of Tidy-HTML5 - fork of the HTML-Tidy library. In Windows 10, its components are not loaded using package managers; you will have to install it manually.
- Install via Package Control plugin SublimeLinter3 .
- Install via Package Control plugin SublimeLinter-html-tidy.
- Download the latest version of HTML Tidy .
- Find where the PATH variable is located . Click on the magnifying glass in the lower left corner near the icon with the window → in the field with the placeholder Search in Windows, enter the System (Control Panel) → click on the block that appears under Best Match :
Additional system parameters → Environment variables ... → click on PATH → Change ... → copy the path located in the field opposite the Variable value:. I have this C:\Users\СашаБожественна\AppData\Roaming\npm
.
- In the folder, the path to which we just received (for me npm), copy the files tidy.dll and tidy.exe from the archive with HTML Tidy → SublimeLinter-html-tidy should work.
About installing linters / validators on Sublime Text 3 for other markup / programming languages, see the article on Habrahabr .