Challenge - 5 Problems
Deprecated Tag Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
❓ rendering
intermediate2:00remaining
What will this HTML render in a modern browser?
Consider this HTML snippet using a deprecated tag:
<center><strong>Hello World!</strong></center>What will the browser display?
HTML
<center><strong>Hello World!</strong></center>
Attempts:
2 left
💡 Hint
Deprecated tags often still work but should be avoided for future compatibility.
✗ Incorrect
The <center> tag is deprecated but browsers still render it by centering the content. The <strong> tag makes the text bold. So the text appears bold and centered.
❓ selector
intermediate2:00remaining
Which CSS selector replaces the deprecated <font> tag for setting text color?
The <font color="red"> tag is deprecated. Which CSS selector correctly styles all paragraphs with red text instead?
Attempts:
2 left
💡 Hint
Use standard CSS properties for color.
✗ Incorrect
The correct CSS property to set text color is 'color'. The selector 'p' targets all paragraphs. So 'p { color: red; }' styles all paragraphs with red text.
🧠 Conceptual
advanced2:00remaining
Why should you avoid using the <marquee> tag in modern web pages?
The <marquee> tag creates scrolling text but is deprecated. What is the main reason to avoid it?
Attempts:
2 left
💡 Hint
Think about accessibility and modern web standards.
✗ Incorrect
The <marquee> tag is deprecated because it does not support accessibility well and does not adapt to different screen sizes. Modern CSS animations are preferred.
📝 Syntax
advanced2:00remaining
What error will this HTML cause in modern browsers?
This snippet uses a deprecated tag incorrectly:
<font color='blue' size=4>Welcome</font>What is the likely result?
HTML
<font color='blue' size=4>Welcome</font>
Attempts:
2 left
💡 Hint
Browsers support many deprecated features for backward compatibility.
✗ Incorrect
Although <font> is deprecated, modern browsers still render both the color='blue' and size=4 attributes for backward compatibility. The text 'Welcome' appears blue and larger (size 4 is bigger than the default size 3).
❓ accessibility
expert2:00remaining
Which modern HTML element best replaces the deprecated <b> tag for emphasizing text without implying importance?
The <b> tag is deprecated for styling only. Which element should you use to style text bold without adding extra meaning?
Attempts:
2 left
💡 Hint
Think about semantic meaning vs visual styling.
✗ Incorrect
The <b> tag is deprecated because it only styles text bold without semantic meaning. <strong> and <em> add importance or emphasis. Using <span> with CSS font-weight:bold styles text visually without adding meaning, which is the modern approach.