re: <a> elements may only contain other inline elements
hang on,
so if i have an anchor tag wrapped around an image (display:inline by
default), its deemed fine by the validator, but if I make that image
"display:block" via the css, (for design purposes, which must be a
pretty common practice on many, many sites - including many i've
designed) would that practice be frowned upon if the validator could
validate your markup *and* the corresponding css at the same time?
possibly some bigger questions there - one being, why shouldnt you be
able to wrap a anchor around a block level element? i know the
difference between inline and block, and the fact that block elements
cant be inside inline elements - but this particular anchor question
seems a bit shakey....
pete
You should use the markup that makes sense without styles in the
first instance, IMHO. The choice to use display:block is rarely a
structural one and is usually presentational. Therefore display:block
the content of your <a> tags to your heart's content (or should that
be main content?).
As to your question about <a> tags for block level elements, can you
give an example when you would use this? I haven't come across one
yet, but I'd be curious if there is a need.
Cheers,
Damian
--
Damian Sweeney
Learning Skills Adviser (online)
Language and Learning Skills Unit
Instructional Designer, AIRport Project
Equity, Language and Learning Programs
University of Melbourne
723 Swanston St
Parkville 3010
www.services.unimelb.edu.au/ellp/
www.services.unimelb.edu.au/llsu/
airport.unimelb.edu.au/
ph 03 8344 9370, fax 03 9349 1039
This email and any attachments may contain personal information or
information that is otherwise confidential or the subject of
copyright. Any unauthorised use, disclosure or copying of any part of
it is prohibited. The University does not warrant that this email or
any attachments are free from viruses or defects. Please check any
attachments for viruses and defects before opening them. If this
email is received in error please delete it and notify us by return
email or by phoning (03) 8344 9370.
******************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************