Let’s free A and HREF!

Take a look to this example:

<nav class="toolbar">
	<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>

Isn’t better if it was possible to be written like this:

	<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>	

or even:

	<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>	

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:

.., you can download it from <a>http://example.com/downloads/</a>.

instead of:

.., you can download it from <a href="http://example.com/downloads/">http://example.com/downloads/</a>.

8 Responses to Let’s free A and HREF!

  1. faz says:

    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 ? ;)

  2. grant says:

    Sounds like you want semantic markup :)

    • Anas R. says:

      Since FONT has been deprecated, and since B and I replaced with STRONG and EM, 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 :)

      • Nigel says:

        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)


  3. Anas R. says:

    Well, at least for command tag!
    I mean isn’t a good idea to add an optional attribute called href to command element?
    The reason is:
    A command might be simply a link to something.

  4. Nigel says:

    I think your biggest issue is using herf as an attribute!

Leave a Reply

Your email address will not be published. Required fields are marked *


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Before you comment here, note that this forum is moderated and your IP address is sent to Akismet, the plugin we use to mitigate spam comments.