Home > Web Front-end > JS Tutorial > body text

How to handle JS that cannot pass W3C verification_javascript skills

WBOY
Release: 2016-05-16 18:32:55
Original
1030 people have browsed it

Here's how:
Add a type attribute to all <script> tags. For example: <script type="text/javascript">. <br>Encapsulate script content in comment statements. For example: <br></p> <div class="codetitle"> <span><a style="CURSOR: pointer" data="84933" class="copybut" id="copybut84933" onclick="doCopy('code84933')"><u>Copy code</u></a></span> The code is as follows:</div> <div class="codebody" id="code84933"> <br><script type="text/javascript" ><!-- <BR>...Js code is located here... <BR>//--> <br></script>


Whether it is HTML Still an XHTML page, making these changes will not resolve all validation errors. The script will continue to run normally.
Related labels:
js
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template