Jump to content

W3c validation for sapcer


Recommended Posts

Hi.. In html page am writing the code for spacer as following.. w3c validator indicate me err.. for all 3 things.. there is no attribute "TYPE". there is no attribute "HEIGHT". element "SPACER" undefined. So may I know where I have to spcify this tag so I wont get any err. have also try via creating table and putup in to between <td> still not get any luck w/o that tag.. m not getting any err. guide me... Regards,Vijay <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><title>Untitled Document</title></head><body><spacer type="vertical" height="4"></spacer></body></html>

Link to post
Share on other sites

Never heard of the spacer element - use

<div style="height:4px; "></div>

Link to post
Share on other sites

That may be so, but the <spacer> element was only ever supported by Netscape, does not appear in any HTML DTD, and is completely deprecated now. What is wrong with divs and CSS?

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...