Let’s free A and HREF!
Posted on:Take a look to this example:
<nav class="toolbar"> <ul> <li><a herf="index.html">Home</a></li> <li><a href="about.html">About</a></li> <li><a href="downloads.html">Downloads</a></li> <li><a href="contact.html">Contact</a></li> <li><a href="javascript:bookmark()">Bookmark</a></li> </ul> </nav>
Isn’t better if it was possible to be written like this:
<toolbar> <li herf="index.html">Home</li> <li href="about.html">About</li> <li href="downloads.html">Downloads</li> <li href="contact.html">Contact</li> <li href="javascript:bookmark()">Bookmark</li> </toolbar>
or even:
<toolbar> <command herf="index.html">Home</command> <command href="about.html">About</command> <command href="downloads.html">Downloads</command> <command href="contact.html">Contact</command> <command href="javascript:bookmark()">Bookmark</command> </toolbar>
I mean why should I have to add <a>
tag to every object/tag I want to link to something? Isn’t better if I were able to add href=""
attribute to this object/tag without using <a>
tag?
Why don’t we use href=""
as a global attribute?
Likewise, think of using <a>
tag without href=""
when the link name = the link address:
<p> .., you can download it from <a>http://example.com/downloads/</a>. </p>
instead of:
<p> .., you can download it from <a href="http://example.com/downloads/">http://example.com/downloads/</a>. </p>
Pointless but it remember me the day when a colleague try to explain me that is an unstable HTML tag…
Are you living in the same community ? 😉
Sounds like you want semantic markup 🙂
Since
FONT
has been deprecated, and sinceB
andI
replaced withSTRONG
andEM
, I think HTML became a semantic markup language!So, what I’m trying to do here is to improve an already exist semantic markup language 🙂
If you’re telling people b and i have been replaced with strong and em you don’t know what you’re talking about.
i — was italic, now for text in an “alternate voice”, such as transliterated foreign words, technical terms, and typographically italicized text
b — was bold, now for “stylistically offset” text, such as keywords and typographically
em — was emphasis, now for stress emphasis, i.e., something you’d pronounce differently
strong — was for stronger emphasis, now for strong importance, basically the same thing (stronger emphasis or importance is now indicated by nesting)
http://html5doctor.com/i-b-em-strong-element/
That’s right, but I believe
B
andI
should be deprecated, they make user confused, just like the problem withabbr
andacronym
.Well, at least for
command
tag!I mean isn’t a good idea to add an optional attribute called
href
tocommand
element?The reason is:
A command might be simply a link to something.
I think your biggest issue is using herf as an attribute!
mmm.. in this post, yes, that’s right!