Question

If some xhtml tag are presentational but valid in W3C then if i use then what is negative point of using those Tags in terms of semantic, code maintanance. I'm talking about b, big, br, hr, i, and small.Are all presentational tags deprecated?

Was it helpful?

Solution

In short: There is no real negative point to using those tags.

To answer more fully: The presentation elements you listed are all indeed valid in XHTML and NOT depreciated: big, i, small, sub, tt and hr.

The only downside to using them is your own site's maintainability: It is easier to maintain/change a website when all the presentational elements are stored away from formatting in CSS.

So, apart from the possibility of more work for you (and anyone else who works on the website), there aren't any real negative points.

Please note: br is NOT presentational, it is considered formatting, like p and h1.

OTHER TIPS

Phrase elements like <strong> and <em> are more semantically correct and are able to achieve richer effect through CSS (rather than simply bold or italic).

These elements also takes standard attributes and event attributes.

And yes, elements: b, big, br, hr, i, and small are deprecating and not supported in HTML5.

Edit: Thanks @Alohci for correction.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top