Comments on: The return of the u element https://stevefaulkner.github.io/html5doctored/u-element/ helping you implement HTML5 today Wed, 30 Mar 2016 14:18:08 +0000 hourly 1 By: Nickleus https://stevefaulkner.github.io/html5doctored/u-element/#comment-2063509 Thu, 03 Dec 2015 09:40:31 +0000 http://html5doctor.com/?p=3862#comment-2063509 << Even before this, was frowned upon as underlines are the browser default for links, and making normal text look like links gives users a bad case of clicky-clicky frustration. >>

seems like an odd rationale–underlined text had a specific meaning before the invention of the web:
<>
http://grammar.yourdictionary.com/punctuation/rules-for-underlining.html

so it looks like underlined hyperlinks is where the W3C went wrong, or was it the big browsers that went wrong, in their impl–who decided that hyperlinks should b rendered underlined by default?

]]>
By: Yehoshua https://stevefaulkner.github.io/html5doctored/u-element/#comment-790812 Sat, 01 Nov 2014 21:24:44 +0000 http://html5doctor.com/?p=3862#comment-790812 Let’s face it, they are 2 totally different elements. just does not underline. And underlining a word has been a form of emphasis the older generation understands. Keep it seperate.

]]>
By: Aleksandar K https://stevefaulkner.github.io/html5doctored/u-element/#comment-85049 Tue, 01 Jul 2014 18:48:34 +0000 http://html5doctor.com/?p=3862#comment-85049 Underlining a text can have a semantic function in a context where it is necessary to differentiate various kinds of emphasis, but where italics or bold text would be inappropriate to use. For instance, consider a translation of some classic work such as Kant’s Critique of Pure Reason. In original text there are sentences and words that are emphasized. In translation those emphasized lines are translated with italics. If one wishes to emphasize of how some line is translated, it would be wrong to use italics, because it would be confused with emphasized words or sentences in original. Here would underlines be more appropriate. They do not serve to decorate a text, but to emphasize the text in question, and as such, they have rather a semantic function.

Best regards,

Aleksandar

]]>
By: Will Kemp https://stevefaulkner.github.io/html5doctored/u-element/#comment-35072 Thu, 13 Jun 2013 10:29:31 +0000 http://html5doctor.com/?p=3862#comment-35072 Underlined links? I remember them! But i haven’t seen many of them in the last five years or so. There may have still been a few people who associated underlining with a link when this article was written, but i doubt there are still any now.

]]>
By: Mike https://stevefaulkner.github.io/html5doctored/u-element/#comment-34693 Tue, 28 May 2013 01:00:10 +0000 http://html5doctor.com/?p=3862#comment-34693 Thank you for the article. Though this article is a little dated, its content still holds true.

With that, I believe there is an aspect that is not being considered that holds an exception to the <u&lg; tag that most of the people concerned with code and “technical stuff” are less aware of. (No offense meant to technically-oriented people, I am one myself.)

I create web pages and some pretty intricate web properties with php & HTML and I’ve really enjoyed how the whole nature of css has evolved over the years.

However, I have also learned online marketing and have developed some fairly decent copywriting skills. I find one of the most difficult things to convey with the written word in English (can’t speak for any other language) is emotion and emphasis.

Using a particular word is only part of the communication. Outside of that, the only other entities we have are: capitalize, bold, italics, underline and highlighting (and, personally, I think highlighting is a bit cheesy, but do use it on occasion).

This falls in the realm of ‘communication’ syntax over “rules” of what a tag is supposed to do, in my opinion.

It’s kind of like capitalization rules in headlines. Proper English rules say to NOT capitalize insignificant words. But any good copywriter knows to capitalize EVERY word in the headline (there are proven psychological reasons for this, beyond the scope of my comment). The “rules” say one thing, but the practical application falls outside of those rules.

So, while the <u> tag may have an application based on a set of “rules” for HTML tags that make perfect sense, there are a number of people out there who will always need to underline text simply for emotional emphasis in their communication. Isn’t this the very reason why we moved from <i> to <em> …for the benefit of screen readers to add emphasis for the blind? Italics is really more about emphasis, even though it has “logical” grammar rules that apply in places where emphasis is not appropriate.

The ‘TECHNICAL’ aspect of this is efficiency of code. Yes, I can always use, for example, <span style=”text-decoration: underline;”>words to be underlined</span> …or some cleverly crafted css tag in my style sheet, but in a world where we’re all focused on trying to increase the efficiency of our systems (or, we all should be), it just doesn’t make sense to me to increase the rendering overhead by an additional 42 characters (in my example above) for the mere fact of following a rule. Sure, 42 characters really isn’t all that much, and we’re probably not even adding more than a nano-second to the page render time, especially with compression, coupled with the fact that 4 and 6-core processors with DDR3 and high-speed Internet are more commonplace than ever.

Still, it seems technologically counter-productive.

In the natural world, there are always those annoying exceptions to everything… rules of English have exceptions. Science & physics always have their exceptions.

When I create pages and code, I’m *very* focused on the user experience…which should be rule #1 that takes precedence over all other rules. Isn’t that why we’re doing this whole HTML5 thing in the first place? It’s all about improving the user experience and making it easier for developers to give the user a great experience without having to learn advanced coding languages or use special plugins, java, flash, etc.

I admit that sometimes I become a bit anal about my page efficiency and have spent many hours studying how browsers render pages, how to tweak Apache, and learning ways to make my web pages “appear” as instantly as possible with shortened css properties & variables, sprites, crafting css properties that are the least ‘expensive’ to render and eliminating every possible server request and even unnecessary space within the code. (Unnecessarily heavy code -like people who still use old table layouts with 3x’s the amount of code over a properly crafted div tag- just irks me.) I even go to the point of seeking out the most efficient image rendering engines to give me the smallest image possible while maintaining a quality image.

Adding 42 characters to code (as in my example above) where 2 characters worked perfectly seems highly counter-productive to the user experience …even if it doesn’t fit nicely into a box of fixed rules.

Just my opinion.
Thanks for reading.

]]>
By: John Sinclair https://stevefaulkner.github.io/html5doctored/u-element/#comment-28203 Sat, 16 Jun 2012 14:55:26 +0000 http://html5doctor.com/?p=3862#comment-28203 It pleases me to see traditional tags allowed if, and only if, they are used properly. For me, that’s especially true of <i> and <b> which are essential for typographically correct text while adding no special emphasis. For an example, s’il vous plaît, I don’t want to <em>phasize a foreign word or phrase, I want to <i>talicize it. Same with HMS Titanic and titles of books and periodicals. Look it up in The AP Stylebook.

My personal rule is simple: I never use <i> (or <b>) without a proper attribute, like lang=”fr”. Neither <i> nor <b> have been depricated; that’s for a good reason. There should be no problem when they’re used properly. The same should be true of <u> when it is styled properly, used judiciously, and attributed accurately.

HTML5 isn’t so much repurposing tags, as it is clarifying their use.

]]>
By: Patrick Samphire https://stevefaulkner.github.io/html5doctored/u-element/#comment-25205 Fri, 06 Apr 2012 06:11:14 +0000 http://html5doctor.com/?p=3862#comment-25205 Edward,

The point of using em with a class in this situation is that, as you point out, the author is using underline as a means of emphasis. Therefore, the appropriate *semantic* mark-up to use is the emphasis element, em. *Visually*, the emphasis is represented by an underline, and you use CSS to set the visual display characteristics on the web.

So, em with a class is exactly the right way to mark up this content.

]]>
By: Edward https://stevefaulkner.github.io/html5doctored/u-element/#comment-25200 Thu, 05 Apr 2012 20:16:35 +0000 http://html5doctor.com/?p=3862#comment-25200 sorry, I didn’t mark code in the previous comment. I was asking about using <em class="underline"> in place of <u>

]]>
By: Edward https://stevefaulkner.github.io/html5doctored/u-element/#comment-25199 Thu, 05 Apr 2012 20:12:58 +0000 http://html5doctor.com/?p=3862#comment-25199 Maybe this is obvious to some people but what should I use if I am reproducing text in which the author used underline as a way to emphasize text? For example, a court opinion from say 1975.

If am trying to reproduce it exactly and obviously can’t control what the author did in 1975 but want to tag it properly what should I do? If I don’t use <u> to underline, should I use something like <em>? This seems just as bad as using <i>.

I appreciate the effort to split semantics from presentation, but to many of these tag decisions are based on the assumption that we are only dealing with new content with which we have control over the style used.

]]>
By: Antonio Bonifati https://stevefaulkner.github.io/html5doctored/u-element/#comment-25159 Sat, 31 Mar 2012 08:46:09 +0000 http://html5doctor.com/?p=3862#comment-25159 Hi, I am using <u> to mark the access keys of buttons in my HTMl5 web app:

<button accesskey="f"><u>f</u>ile</button>

IMHO this is a good use too, but I am open to other solutions. I know about <span> with a class name, but I see no advantages in using that – it just seems overkill and verbose. Moral: the distinction between semantics and presentation can sometimes be blurred!

]]>