HTML Tutorial

INTRODUCTION

Edit Template
  • Home
  • /
  • Obsolete HTML Tags

HTML Tutorial

INTRODUCTION

Edit Template
  • 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

				
					<font color="red" size="3" face="verdana">This is some text</font>


				
			

<center> – to center- align text

				
					<center>This text will be centered</center>

				
			

<u> -to underline

				
					<u>This text will be underlined</u>

				
			

Modern CSS Alternatives

Replace <font> with:

				
					<span style="color:red; font-size:16px; font-family:Verdana;">This is some text</span>


				
			

Replace <center> with:

				
					<div style="text-align:center;">This text will be centered</div>

				
			

Replace <u> with

				
					<span style="text-decoration:underline;">This text will be underlined</span>

				
			

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
Scroll to Top