Use of Comments Inside Inline style and script

Authors who are familiar with HTML commonly enclose the contents of inline style and script tags in comments in order to hide the contents of the tags from browsers which do not understand them. More information can be found here.

<style type="text/css">
  body {background-color: blue; color: yellow;}
<script type="text/javascript">
 // -->

Leave a Reply