1. Home
  2. Computer Science MCQs
  3. HTML
  4. We can handle old browsers by placing CSS codes inside.

Added 20 Jan 2024

We can handle old browsers by placing CSS codes inside.

  1. //……………….//
  2. <!………………> Correct answer
  3. /*………………*/
  4. None of the above

Correct answer

B. <!………………>

13 views

MCQSEXAM

Explanation

Older browsers that did not understand CSS were handled by wrapping the style rules in an HTML comment, <!-- ... -->, inside the <style> element. Browsers that knew CSS read the rules; those that did not simply ignored the commented text instead of printing it on the page.

The technique is obsolete today but still appears in tests.

Want more practice? Try the full set of Computer Science MCQs on MCQsExam.com.

Doubts & discussion

Not sure why the answer is B? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More HTML MCQs

Practise all HTML MCQs

Similar MCQs