/    Sign up×
Community /Pin to ProfileBookmark

newbie to css

what is the difference using
“<!– –>”
inside the this code
“<style type=”text/css”>”
and not?

to post a comment
CSS

3 Comments(s)

Copy linkTweet thisAlerts:
@rhsundergroundAug 12.2004 — how do you mean?
Copy linkTweet thisAlerts:
@MstrBobAug 12.2004 — The <!-- --> is a sort of comment. Older browsers that don't understand CSS are tricked into view it all as a comment, thus it's ignored. It doesn't have to be used (I don't think there are very many people using those old browsers anymore). But for some (me!) it's habit, I guess...


Edit: Means like this:

<style type="text/css">

<!--

...css here...

-->

</style>
Copy linkTweet thisAlerts:
@psylangauthorAug 12.2004 — okies, thanks. coa i already tried both
×

Success!

Help @psylang spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.20,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...