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 54579 '...noscript> <script async type="text/javascript"> var g...'
On line 1, column 56200 '...</script> <script async class="meteored-ads"> !func...'
On line 1, column 58145 '...</script> <script async> var c...'

4. Duplicate ID “a”. 3 occurrences
On line 1, column 66670 '...</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 66910 '...ss="row"> <img src="https://www.theweather.com/css/v3/svgs/symbols/color/3.svg" width="32" height="32"> <div ...'
On line 1, column 67287 '...ss="row"> <img src="https://www.theweather.com/css/v3/svgs/symbols/color/10.svg" width="32" height="32"> <div ...'
On line 1, column 67686 '...ss="row"> <img src="https://www.theweather.com/css/v3/svgs/symbols/color/18.svg" width="32" height="32"> <div ...'
On line 1, column 68059 '...ss="row"> <img src="https://www.theweather.com/css/v3/svgs/symbols/color/3.svg" width="32" height="32"> <div ...'

6. Attribute “data” not allowed on element “span” at this point. 36 occurrences
On line 1, column 67104 '...an> </h4> <span class="temperatura changeUnitT" data="22|0|">...'
On line 1, column 67503 '...an> </h4> <span class="temperatura changeUnitT" data="66|0|">66</sp...'
On line 1, column 67877 '...pan> </h4> <span class="temperatura changeUnitT" data="21|0|">21</sp...'
On line 1, column 68246 '...an> </h4> <span class="temperatura changeUnitT" data="10|0|">...'
On line 49, column 20136 '...ss="row"> <span class="maxima changeUnitT" data="-1.35|0|">30&deg...'
On line 49, column 20200 '...g;</span> <span class="minima changeUnitT" data="-6.56|0|">...'
On line 49, column 20783 '...ss="row"> <span class="maxima changeUnitT" data="-5.13|0|">...'
On line 49, column 20848 '...g;</span> <span class="minima changeUnitT" data="-12.42|0|">...'
On line 49, column 21436 '...ss="row"> <span class="maxima changeUnitT" data="-10.9|0|">...'
On line 49, column 21501 '...g;</span> <span class="minima changeUnitT" data="-21.47|0|">-7&deg...'
On line 49, column 22092 '...ass="row"> <span class="maxima changeUnitT" data="1.44|0|">35&deg...'
On line 49, column 22156 '...eg;</span> <span class="minima changeUnitT" data="-3.65|0|">25&deg...'
On line 49, column 22740 '...ass="row"> <span class="maxima changeUnitT" data="-14.51|0|">12&deg...'
On line 49, column 22805 '...g;</span> <span class="minima changeUnitT" data="-21.02|0|">-6&deg...'
On line 49, column 23383 '...ss="row"> <span class="maxima changeUnitT" data="5.05|0|">41&deg...'
On line 49, column 23447 '...eg;</span> <span class="minima changeUnitT" data="-1.86|0|">29&deg...'
On line 49, column 24035 '...ss="row"> <span class="maxima changeUnitT" data="10.73|0|">...'
On line 49, column 24099 '...eg;</span> <span class="minima changeUnitT" data="-2.25|0|">28&deg...'
On line 49, column 24706 '...ass="row"> <span class="maxima changeUnitT" data="21.53|0|">71&deg...'
On line 49, column 24769 '...g;</span> <span class="minima changeUnitT" data="3.69|0|">...'
On line 49, column 25355 '...ass="row"> <span class="maxima changeUnitT" data="17.81|0|">72&deg...'
On line 49, column 25419 '...g;</span> <span class="minima changeUnitT" data="16.39|0|">...'
On line 49, column 26014 '...ss="row"> <span class="maxima changeUnitT" data="-14.55|0|">6&deg;...'
On line 49, column 26078 '...g;</span> <span class="minima changeUnitT" data="-23.62|0|">...'
On line 49, column 26677 '...ass="row"> <span class="maxima changeUnitT" data="-21.93|0|">-7&deg...'
On line 49, column 26742 '...eg;</span> <span class="minima changeUnitT" data="-29.72|0|">...'
On line 49, column 27339 '...ss="row"> <span class="maxima changeUnitT" data="-4.61|0|">28&deg...'
On line 49, column 27403 '...eg;</span> <span class="minima changeUnitT" data="-15.4|0|">...'
On line 49, column 27986 '...ss="row"> <span class="maxima changeUnitT" data="18.57|0|">65&deg...'
On line 49, column 28049 '...eg;</span> <span class="minima changeUnitT" data="2.43|0|">36&deg...'
On line 49, column 28650 '...ass="row"> <span class="maxima changeUnitT" data="17.73|0|">65&deg...'
On line 49, column 28714 '...g;</span> <span class="minima changeUnitT" data="10.68|0|">...'
On line 49, column 29301 '...ss="row"> <span class="maxima changeUnitT" data="5.62|0|">42&deg...'
On line 49, column 29365 '...eg;</span> <span class="minima changeUnitT" data="-2.03|0|">28&deg...'
On line 49, column 29977 '...ss="row"> <span class="maxima changeUnitT" data="-5.23|0|">...'
On line 49, column 30041 '...g;</span> <span class="minima changeUnitT" data="-15.3|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 35985 '...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 37106 '...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 37106 '...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 54579 '...noscript> <script async type="text/javascript"> var g...'
On line 1, column 58830 '...endif]--> <script async type="application/javascript" src="https://services.theweather.com/js/loader.js"></scri...'
On line 1, column 64849 '..."ad_top"> <script type='text/javascript'> if (p...'

3. The first occurrence of ID “a” was here. 3 occurrences
On line 1, column 66327 '...</g><defs><clipPath id="a"><path ...'
On line 1, column 66327 '...</g><defs><clipPath id="a"><path ...'
On line 1, column 66327 '...</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 73504 '...:00.000Z"><article class="first-article" data-id="693130"> <di...'
On line 19, column 72 '...s grid-3"><article data-id="693099"> <di...'
On line 29, column 36 '...</article><article data-id="692246"> <di...'
On line 39, column 36 '...</article><article data-id="692594"> <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 73383 '...n> </div> <section class="modulo-mas-noticias first-news"> <div ...'
On line 49, column 30162 '...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 31098 '...0/480);"> <img class="lazy" alt="Severe wildfires wreak havoc in El Sauce, Chile" src="https://www.theweather.com/img/apixel.png" data-src="https://services.meteored.com/img/video/preview/dailymotion-x9cpj1y_480.jpg" data-srcset="https://services.meteored.com/img/video/preview/dailymotion-x9cpj1y_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.