HTML Validation Result of theweather.com

After validating, we found 15 errors and 6 warnings.

15 Errors

1. A “meta” element with an “http-equiv” attribute whose value is “X-UA-Compatible” must have a “content” attribute with the value “IE=edge”. 1 occurrence
On line 1, column 4323 '...ang="ru"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta...'

2. CSS: Parse Error. 3 occurrences
On line 1, column 11175 '...principal.--izq{margi...'
On line 1, column 11241 '...principal.--izq{margi...'
On line 1, column 11279 '...principal.--der{margi...'

3. Element “script” must not have attribute “async” unless attribute “src” is also specified or unless attribute “type” is specified with value “module”. 3 occurrences
On line 1, column 53691 '...noscript> <script async type="text/javascript"> var g...'
On line 1, column 55312 '...</script> <script async class="meteored-ads"> !func...'
On line 1, column 57257 '...</script> <script async> var c...'

4. Duplicate ID “a”. 3 occurrences
On line 1, column 65782 '...</g><defs><clipPath id="a"><path ...'
On line 49, column 2735 '...29"><defs><linearGradient id="a" x1="14.5" x2="14.5" y1="29.4" y2=".4" gradientTransform="matrix(1 0 0 -1 0 29.4)" gradientUnits="userSpaceOnUse"><stop ...'
On line 49, column 6502 '...</g><defs><clipPath id="a"><path ...'

5. An “img” element must have an “alt” attribute, except under certain conditions. For details, consult guidance on providing text alternatives for images. 4 occurrences
On line 1, column 66022 '...ss="row"> <img src="https://www.theweather.com/css/v3/svgs/symbols/color/6.svg" width="32" height="32"> <div ...'
On line 1, column 66398 '...ss="row"> <img src="https://www.theweather.com/css/v3/svgs/symbols/color/3.svg" width="32" height="32"> <div ...'
On line 1, column 66796 '...ss="row"> <img src="https://www.theweather.com/css/v3/svgs/symbols/color/6.svg" width="32" height="32"> <div ...'
On line 1, column 67170 '...ss="row"> <img src="https://www.theweather.com/css/v3/svgs/symbols/color/18.svg" width="32" height="32"> <div ...'

6. Attribute “data” not allowed on element “span” at this point. 36 occurrences
On line 1, column 66216 '...pan> </h4> <span class="temperatura changeUnitT" data="27|0|">...'
On line 1, column 66614 '...an> </h4> <span class="temperatura changeUnitT" data="58|0|">...'
On line 1, column 66987 '...an> </h4> <span class="temperatura changeUnitT" data="30|0|">30</sp...'
On line 1, column 67357 '...pan> </h4> <span class="temperatura changeUnitT" data="24|0|">...'
On line 49, column 20147 '...ss="row"> <span class="maxima changeUnitT" data="11.02|0|">52&deg...'
On line 49, column 20209 '...eg;</span> <span class="minima changeUnitT" data="7.1|0|">45&deg...'
On line 49, column 20797 '...ss="row"> <span class="maxima changeUnitT" data="3.46|0|">...'
On line 49, column 20860 '...g;</span> <span class="minima changeUnitT" data="1.83|0|">35&deg...'
On line 49, column 21438 '...ss="row"> <span class="maxima changeUnitT" data="3.49|0|">38&deg...'
On line 49, column 21503 '...eg;</span> <span class="minima changeUnitT" data="-11.88|0|">11&deg...'
On line 49, column 22094 '...ass="row"> <span class="maxima changeUnitT" data="13.92|0|">57&deg...'
On line 49, column 22157 '...g;</span> <span class="minima changeUnitT" data="7.13|0|">...'
On line 49, column 22738 '...ss="row"> <span class="maxima changeUnitT" data="11.87|0|">53&deg...'
On line 49, column 22802 '...eg;</span> <span class="minima changeUnitT" data="-3.49|0|">26&deg...'
On line 49, column 23389 '...ss="row"> <span class="maxima changeUnitT" data="20.03|0|">68&deg...'
On line 49, column 23453 '...eg;</span> <span class="minima changeUnitT" data="14.16|0|">57&deg...'
On line 49, column 24041 '...ss="row"> <span class="maxima changeUnitT" data="20.37|0|">69&deg...'
On line 49, column 24104 '...eg;</span> <span class="minima changeUnitT" data="6.59|0|">44&deg...'
On line 49, column 24711 '...ss="row"> <span class="maxima changeUnitT" data="19.71|0|">67&deg...'
On line 49, column 24774 '...eg;</span> <span class="minima changeUnitT" data="8.15|0|">47&deg...'
On line 49, column 25363 '...ss="row"> <span class="maxima changeUnitT" data="23.47|0|">74&deg...'
On line 49, column 25427 '...eg;</span> <span class="minima changeUnitT" data="14.33|0|">58&deg...'
On line 49, column 26011 '...ss="row"> <span class="maxima changeUnitT" data="3.24|0|">38&deg...'
On line 49, column 26076 '...g;</span> <span class="minima changeUnitT" data="-11.51|0|">...'
On line 49, column 26666 '...ss="row"> <span class="maxima changeUnitT" data="0.95|0|">34&deg...'
On line 49, column 26730 '...g;</span> <span class="minima changeUnitT" data="-15.9|0|">...'
On line 49, column 27321 '...ss="row"> <span class="maxima changeUnitT" data="2.85|0|">39&deg...'
On line 49, column 27384 '...eg;</span> <span class="minima changeUnitT" data="1.76|0|">35&deg...'
On line 49, column 27968 '...ass="row"> <span class="maxima changeUnitT" data="23.91|0|">75&deg...'
On line 49, column 28031 '...g;</span> <span class="minima changeUnitT" data="10.9|0|">...'
On line 49, column 28632 '...ass="row"> <span class="maxima changeUnitT" data="16.67|0|">62&deg...'
On line 49, column 28695 '...g;</span> <span class="minima changeUnitT" data="9.96|0|">...'
On line 49, column 29282 '...ss="row"> <span class="maxima changeUnitT" data="8.05|0|">...'
On line 49, column 29345 '...g;</span> <span class="minima changeUnitT" data="1.07|0|">...'
On line 49, column 29953 '...ss="row"> <span class="maxima changeUnitT" data="5.48|0|">...'
On line 49, column 30016 '...g;</span> <span class="minima changeUnitT" data="3.01|0|">...'

7. No space between attributes. 1 occurrence
On line 49, column 480 '...d="bannerDerPC"class="derecha-...'

8. End tag “g” did not match the name of the current open element (“svg”). 1 occurrence
On line 49, column 6479 '...#69C9D0"/></g><defs>...'

9. Stray end tag “g”. 1 occurrence
On line 49, column 6479 '...#69C9D0"/></g><defs>...'

10. Attribute “data” not allowed on element “use” at this point. 4 occurrences
On line 49, column 8441 '...2000/svg"><use xlink:href="#despMas" data="sp3"></use>...'
On line 49, column 10980 '...2000/svg"><use xlink:href="#despMas" data="sp3"></use>...'
On line 49, column 11652 '...2000/svg"><use xlink:href="#despMas" data="sp3"></use>...'
On line 49, column 12159 '...000/svg"> <use xlink:href="#despMas" data="sp3"></use>...'

11. Element “h2” not allowed as child of element “span” in this context. (Suppressing further errors from this subtree.) 1 occurrence
On line 49, column 12037 '...lected3"> <h2>State ...'

12. Element “ul” not allowed as child of element “span” in this context. (Suppressing further errors from this subtree.) 1 occurrence
On line 49, column 12231 '...> </span> <ul id="ul_hijos" class="selectorNoMostrar hijos"> <li c...'

13. Stray end tag “span”. 1 occurrence
On line 49, column 36019 '...Facebook"></span></a></...'

14. Bad value “15.8” for attribute “width” on element “img”: Expected a digit but saw “.” instead. 1 occurrence
On line 49, column 37140 '...noopener"><img width="15.8" height="15.8" class="lazy" src="https://www.theweather.com/img/apixel.png" data-src="https://www.theweather.com/css/v3/svgs/rrss/linkedin.svg" data-srcset="https://www.theweather.com/css/v3/svgs/rrss/linkedin.svg" alt="Follow us on LinkedIn"></a></...'

15. Bad value “15.8” for attribute “height” on element “img”: Expected a digit but saw “.” instead. 1 occurrence
On line 49, column 37140 '...noopener"><img width="15.8" height="15.8" class="lazy" src="https://www.theweather.com/img/apixel.png" data-src="https://www.theweather.com/css/v3/svgs/rrss/linkedin.svg" data-srcset="https://www.theweather.com/css/v3/svgs/rrss/linkedin.svg" alt="Follow us on LinkedIn"></a></...'

6 Warnings

1. Consider avoiding viewport values that prevent users from resizing documents. 1 occurrence
On line 1, column 4431 '...hrome=1"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> <link...'

2. The “type” attribute is unnecessary for JavaScript resources. 3 occurrences
On line 1, column 53691 '...noscript> <script async type="text/javascript"> var g...'
On line 1, column 57942 '...endif]--> <script async type="application/javascript" src="https://services.theweather.com/js/loader.js"></scri...'
On line 1, column 63961 '..."ad_top"> <script type='text/javascript'> if (p...'

3. The first occurrence of ID “a” was here. 3 occurrences
On line 1, column 65439 '...</g><defs><clipPath id="a"><path ...'
On line 1, column 65439 '...</g><defs><clipPath id="a"><path ...'
On line 1, column 65439 '...</g><defs><clipPath id="a"><path ...'

4. Article lacks heading. Consider using “h2”-“h6” elements to add identifying headings to all articles. 4 occurrences
On line 1, column 72615 '...:00.000Z"><article class="first-article" data-id="686089"> <di...'
On line 19, column 72 '...s grid-3"><article data-id="685921"> <di...'
On line 29, column 36 '...</article><article data-id="685030"> <di...'
On line 39, column 36 '...</article><article data-id="685935"> <di...'

5. Section lacks heading. Consider using “h2”-“h6” elements to add identifying headings to all sections, or else use a “div” element instead for any cases where no heading is needed. 2 occurrences
On line 1, column 72494 '...n> </div> <section class="modulo-mas-noticias first-news"> <div ...'
On line 49, column 30138 '...tem-row"> <section class="noticias-video card"> <div ...'

6. Trailing slash on void elements has no effect and interacts badly with unquoted attribute values. 1 occurrence
On line 49, column 31103 '...0/480);"> <img class="lazy" alt="Spectacular eruption of the mud volcano Bledug Kesongo in Gabusan, Indonesia" src="https://www.theweather.com/img/apixel.png" data-src="https://services.meteored.com/img/video/preview/dailymotion-x9a6eyi_480.jpg" data-srcset="https://services.meteored.com/img/video/preview/dailymotion-x9a6eyi_480.jpg 480w" height="214" width="250" fetchpriority="low" /> <div ...'

HTML Validator

HTML validator. Verifies HTML files for compliance with W3C standards and evaluates code quality against best practices.


HTML Validator is a tool that checks your HTML code for errors or mistakes. It's designed to help you ensure that your web pages are properly formatted, semantically correct, and accessible to users. HTML Validator is a great tool for website owners, developers, and designers who want to create high-quality websites that are easy to use and maintain.

How to Use an HTML Validator:

Using an HTML validator is a simple process. Here are the basic steps:

    Enter your website URL.

    Run the validator: Click the "Validate" button to run the validator. The tool will scan your HTML code and generate a report that lists any errors, warnings, or other issues.

    Review the results: Review the results of the validation report to see what errors or issues have been found. The report will highlight the line of code where the issue was detected and provide a brief explanation of the problem.

    Fix any errors or issues: Once you've reviewed the validation report, you can start fixing any errors or issues that have been identified. This may involve editing your HTML code, changing the structure of your web pages, or adding additional content to improve accessibility or user experience.

    Re-validate your HTML code: After you've made changes to your HTML code, it's a good idea to re-validate your web pages using the HTML validator. This will help ensure that you've fixed all the issues and that your web pages are compliant with HTML standards.