0
0
HTMLmarkup~20 mins

Avoiding deprecated tags in HTML - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Deprecated Tag Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
rendering
intermediate
2: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>
AThe text 'Hello World!' centered but not bolded.
BThe text 'Hello World!' left aligned and bolded on the page.
CAn error message because &lt;center&gt; is deprecated and not supported.
DThe text 'Hello World!' centered and bolded on the page.
Attempts:
2 left
💡 Hint
Deprecated tags often still work but should be avoided for future compatibility.
selector
intermediate
2: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?
Ap { color: red; }
Bfont { color: red; }
Cp { font-color: red; }
Dp { text-color: red; }
Attempts:
2 left
💡 Hint
Use standard CSS properties for color.
🧠 Conceptual
advanced
2: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?
AIt is not supported by any modern browser and causes errors.
BIt requires JavaScript to work properly.
CIt is deprecated and does not provide accessible or responsive content.
DIt slows down page loading significantly.
Attempts:
2 left
💡 Hint
Think about accessibility and modern web standards.
📝 Syntax
advanced
2: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>
AThe text 'Welcome' appears blue and sized correctly.
BThe text appears but the size attribute is ignored.
CA syntax error prevents the page from loading.
DThe browser ignores the &lt;font&gt; tag and shows default text styling.
Attempts:
2 left
💡 Hint
Browsers support many deprecated features for backward compatibility.
accessibility
expert
2: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?
A&lt;mark&gt;
B&lt;span&gt; with CSS font-weight:bold;
C&lt;strong&gt;
D&lt;em&gt;
Attempts:
2 left
💡 Hint
Think about semantic meaning vs visual styling.