HighDots Forums  

Re: newbie comment question

alt.html.tags alt.html.tags


Discuss Re: newbie comment question in the alt.html.tags forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
David Dorward
 
Posts: n/a

Default Re: newbie comment question - 10-08-2003 , 01:15 PM






Jeff Kish wrote:

Quote:
Please excuse me if this does not belong in this group.. maybe a jsp
group? I am a beginner. I thought that this tag indicated a comment that
was passed through to the browser but not acted upon: <!-- yada yada yada
--

style type="text/css"
!--
span.kan {color: #ff0000}
--
/style
The content of <style> tags is CDATA, this means that SGML has no effect
inside it, hence the comments are not comments.

The idea of using SGML comments inside a CDATA block is to hide the content
from older browsers (like Netscape 2) which can't cope with any HTML 4.x.

I consider this a highly suboptimal solution and suggest you stick to
external CSS files attached to the document with a <link> element.

--
David Dorward http://dorward.me.uk/


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.