Is "U" tag still necessary?

For support and discussion related to templates, themes, and imagesets in phpBB 3.1.
Suggested Hosts
Profo
Registered User
Posts: 34
Joined: Wed May 13, 2009 1:51 pm

Is "U" tag still necessary?

Post by Profo »

I'm playing with 3.1 RC1. In prosilver/theme/common.css, around line 150:

Code: Select all

u {

	text-decoration: underline;

}
The <u> tag is deprecated for HTML5 and no longer used.
Taking a fast look at templates, I didn't find it. Most underlined texts are styled in css (e.g. border-bottom), which is the correct approach for HTML5.
"U" BBCode now returns <span style="text-decoration: underline">underlined text</span>.
So is this tag still necessary anywhere on the forums?
User avatar
RMcGirr83
Former Team Member
Posts: 22052
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: Is "U" tag still necessary?

Post by RMcGirr83 »

That isn't an HTML tag, it is a css one. They are completely different.
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then you can support me by buying a beer 🍺
Profo
Registered User
Posts: 34
Joined: Wed May 13, 2009 1:51 pm

Re: Is "U" tag still necessary?

Post by Profo »

I'm sorry, but I don't understand your answer. I know the difference between HTML and CSS, and I know what tags are; they are not classes, identifiers or attributes. As far as I know, HTML tags are exactly the same as CSS tags.

I'll try to elaborate my question:
I just found it strange to see "u" tag in CSS. I searched trough templates and didn't find a reason for this tag to be there. I didn't find any other html5-deprecated tags in CSS either (like "acronym", "center" or "strike").
And this "u" tag is definitely not needed to display user input in topics (BBCodes).
There's probably a reason for the "u" tag to be there in common.css, and that's what I'm asking. Why or where do we need it?
User avatar
david63
Registered User
Posts: 20646
Joined: Thu Dec 19, 2002 8:08 am

Re: Is "U" tag still necessary?

Post by david63 »

Profo wrote:Why or where do we need it?
Cannot profess to be an expert in this area but could this be required for backward compatibility?
David
Remember: You only know what you know and - you don't know what you don't know!

I now no longer support any of my extensions but they will start to become available here
Profo
Registered User
Posts: 34
Joined: Wed May 13, 2009 1:51 pm

Re: Is "U" tag still necessary?

Post by Profo »

Yes, you are probably right david63. I didn't think about that, and it makes perfect sense. There are a lot of forums upgraded from older versions of phpbb.
User avatar
MattF
Extensions Development Coordinator
Extensions Development Coordinator
Posts: 5970
Joined: Sat Jan 17, 2009 9:37 am
Location: Los Angeles, CA
Name: Matt Friedman

Re: Is "U" tag still necessary?

Post by MattF »

<u> tags are not used in Prosilver or subsilver2, so no need for the CSS rule.
Formerly known as VSEMy ExtensionsPlease do not PM me for support.

Return to “[3.1.x] Styles Support & Discussion”