Forum Moderators: open

Message Too Old, No Replies

about noHref ( need urgent response)

         

amir_iiui

9:23 am on Jun 23, 2005 (gmt 0)

10+ Year Member



We are using a file in our web application which contains following line

<AREA noHref="0" shape="RECT" coords="0,0,0,0" alt="">

No when we validate this file with the w3c validator then noHref produces following error.

" value of attribute "NOHREF" cannot be "0"; must be one of "NOHREF" "

When we use 'false' in place of '0' as value, then again the same error produce.

Can somebody tell me how to overcome this error. and what ripple effect will be produced by that change.

BlobFisk

9:32 am on Jun 23, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



What DTD are you using?

amir_iiui

9:33 am on Jun 23, 2005 (gmt 0)

10+ Year Member



<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >

amir_iiui

9:47 am on Jun 23, 2005 (gmt 0)

10+ Year Member



I need urgent help on that.

BlobFisk

11:28 am on Jun 23, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Have you tried true as a value?

amir_iiui

12:16 pm on Jun 23, 2005 (gmt 0)

10+ Year Member



Same error is produced when i used value "true".
But one interesting thing, when i donot provide any value, that is, only write noHref, then no error is produced. Is this the correct syntax. if i use it so, will it create any ripple effect?

Robin_reala

12:31 pm on Jun 23, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



nohref is an attribute that doesn't need to take a value in html (I forget the technical name). If you're using XHTML then you'll need to change this to nohref="nohref". Simply leave it out if you want to set it to false.

BlobFisk

12:58 pm on Jun 23, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member




nohref is an attribute that doesn't need to take a value in html

Argh! Spot on by Robin_reala! In HTML 4 it's a valueless attribute (like selected) in XHTML it's as Robin_reala said...