- Home
- /
- Obsolete HTML Tags
HTML Tutorial
INTRODUCTION
HTML BASIC TAGS
INLINE & BLOCK ELEMENTS
HTML LISTS
HTML TABLES
HTML FORMS
HEAD ELEMENTS
HTML MEDIA
MISCELLANEOUS TAGS
- Home
- /
- Obsolete HTML Tags
Obsolete HTML Tags
As web standard evolve, some HTML tags have been deprecated or removed. These are called obsolete tags.
What are Obsolete Tags?
Obsolete tags are HTML elements that:
- Are no longer recommended
- May not work consistently in modern browsers
- Should be replaced with CSS or semantic HTML
Why Avoid them?
- Poor browser support
- Not accessible
- Hard to maintain
- Fails modern web design practices
Example of Obsolete Tags
<font>
– for color, size, font
This is some text
<center>
– to center- align text
This text will be centered
<u>
-to underline
This text will be underlined
Modern CSS Alternatives
Replace <font>
with:
This is some text
Replace <center>
with:
This text will be centered
Replace <u>
with
This text will be underlined
Conclusion
Obsolete tags may still work-but using them is bad practice. Always use CSS and HTML5 to:
- Keep your code clean
- Ensure compatibility
- Improve accessibility
- Make updates easier