I just like to ask what the title says. The following string required into HTML script tags?
<!--
//-->
If I don’t use them what would happen?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Not unless you are targeting browsers that predate the
<script>element (i.e. Netscape 1 and friends). (Hint: You aren’t).If you don’t use them, and a browser that old (so old it can’t even cope with the HTTP Host header which is needed for sites that use virtual hosts) tries to access the site, then the content of the
<script>element will be treated as text to be displayed.Further reading: Comments and CDATA: The mysterious history of script and style in HTML