Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8790071
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T22:33:27+00:00 2026-06-13T22:33:27+00:00

Possible Duplicate: Commenting out stylesheets in HTML documents to support older browsers I am

  • 0

Possible Duplicate:
Commenting out stylesheets in HTML documents to support older browsers

I am reading Professional ASP.NET 2.0 published by Wrox. see below code.

    <head>
    <style type="text/css">

    <!--

    body {
    font-family:Verdana;
    }

    -->
    </style>
 </head>

following lines are from book:

HTML comment tags are included because not all browsers support internal stylesheets.It is generally the older browsers that do not accept them. putting HTML comments around the style definitions hides these definitions from very old browsers.

now my question is that how it is possible that contents between comments hides to only old browsers not to new ones? is new browsers not get affected by comments?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T22:33:28+00:00Added an answer on June 13, 2026 at 10:33 pm

    Old (or rather, ancient) browsers do not recognise <style> so it gets treated like any other unknown element and its content is treated as HTML. The comment is treated as a comment, so nothing is rendered.

    Browsers which support <style> know to treat the content as CSS and ignore the HTML comment (as per the specification).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Commenting out stylesheets in HTML documents to support older browsers I'm trying
Possible Duplicate: commenting VB code Lack of block comments in VB .NET? How to?
Possible Duplicate: When does Endianness become a factor? reading this tuto on endianess, i
Possible Duplicate: Making sure a web page is not cached, across all browsers I
Possible Duplicate: Why not use tables for layout in HTML? Under what conditions should
Possible Duplicate: .NET - What’s the best way to implement a catch all exceptions
Possible Duplicate: Commenting interpreted code and performance Does comments affect when including files in
Possible Duplicate: Commenting interpreted code and performance When you include a file in PHP
Possible Duplicate: Why does this Javascript code inside a non-Javascript browser have extra commenting?
Possible Duplicate: Find out the instance id from within an ec2 machine I am

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.