Sunday, October 16, 2005

An HTML trivia

Something that I noticed today. Suppose I want to link to my previous post. I type the link name in between

a href="http://locana.blogspot.com/2005/10/top-universities.html" and /a,

of course with the right brackets. The output appears as Top universities. Now suppose I make a typo that instead of "=" I put a minus "-" after a href. i.e., I type "Top universities" in between

a href-"http://locana.blogspot.com/2005/10/top-universities.html" and /a;

Here's the output: Top universities. The output links to the current page!

4 Comments:

At 6:38 AM, Anonymous Vulturo said...

Although it is invalid HTML, modern day browsers aren't all that dumb.

What with quirks mode rendering, and several other things, todays browsers very rarely goof up, even if the webmaster does.

I've seen that almost 50% of the web-content is invalid code as per W3. I find it very amusing.

Meanwhile... if you wish to depict "<" in a regular post without it being misunderstood as a tag, use < (use > for the other ~ less than and greater than)

 
At 1:24 AM, Anonymous Anand said...

Thanks Saket. Yes, the output is browser dependent, which I noticed only later. The "wrong" link doesn't work at all with explorer.

 
At 12:46 AM, Blogger Adi said...

Find Internet Marketing resource hare Online Marketing Strategy | Internet Marketing Tools | Online Marketing Campaign | Online Marketing Business | Online Marketing System | Online Business | Online Home Business | Online Business Tips | Internet Marketing Online

 
At 6:05 AM, Blogger Adi said...

Oes Tsetnoc one of the ways in which we can learn seo besides Mengembalikan Jati Diri Bangsa. By participating in the Oes Tsetnoc or Mengembalikan Jati Diri Bangsa we can improve our seo skills. To find more information about Oest Tsetnoc please visit my Oes Tsetnoc pages. And to find more information about Mengembalikan Jati Diri Bangsa please visit my Mengembalikan Jati Diri Bangsa pages. Thank you So much.
Oes Tsetnoc | Semangat Mengembalikan Jati Diri Bangsa

 

Post a Comment

<< Home