# Hiding/Using Comments in Inline Style and Script Tags

**URL:** <https://forum.kirupa.com/t/hiding-using-comments-in-inline-style-and-script-tags/167252>\
**Category:** web dev\
**Created:** [October 26, 2005, 5:03pm UTC](https://forum.kirupa.com/t/hiding-using-comments-in-inline-style-and-script-tags/167252 "2005-10-26T17:03:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![senocular](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/senocular/32/7217_2.png) [@senocular](https://forum.kirupa.com/u/senocular)\
**Post date:** [October 26, 2005, 5:03pm UTC](https://forum.kirupa.com/t/hiding-using-comments-in-inline-style-and-script-tags/167252/1 "2005-10-26T17:03:33Z")

</div>

Ok, so whats the deal. How should they be treated with strict XHTML.

Im aware of the problems with IE when rendered as xml instead of text/html, but what does that mean should be used?

```auto

<style>
(styles)
</style>
<script>
(script)
</script>

<style>
<!--
(styles)
-->
</style>
<script>
<!--
(script)
-->
</script>

<style>
/* <![CDATA[ */
(styles)
/* ]]> */
</style>
<script>
// <![CDATA[
(script)
// ]]>
</script>

```

Or what? Seems a little confusing and conflicting. \<!-- --\> comments seem to be pretty standard, but they also don’t allow for well formed documents for certain JS statements.

What should be used?
