pablodance
pablodance

Reputation: 63

White space in HTML links?

We have recently taken on a website for a client and changed the site from a PHP backend to a .aspx which has been a real pain of a job!

Whilst adding the .aspx tags in the html code the developer has left white space within page link tags for some reason - which I have just noticed - only simple white space line breaks as shown below, the site has been tested in ie8, firefox and Chrome and Safari on the mac and all seems fine - so it's probably just paranoia (to change all pages would take a long while) - can anyone see any major cause for concern with white space below - or should I quit being paranoid!?

<li><a href="../../index.html">
 home</a></li>


<a href="../../special-treats.html
"><img src="../../images/treatsbutton.gif" width="260" height="40" alt="Click here to treat    yourself" /></a>

Upvotes: 2

Views: 2628

Answers (2)

shubniggurath
shubniggurath

Reputation: 966

It will work, but it ain't pretty/fun to maintain. My suggestion, for the sake of improved maintainability, is if you can't do them all at once, do them as you maintain it. That is, if you're maintaining page x, clean up the breaks/whitespace on page x while you're doing it. Spending a couple of extra minutes doing that per revision/page will make it a bit less taxing.

Upvotes: 1

Baumr
Baumr

Reputation: 6284

It is fine. Double white space is ignored by HTML parsers (browsers).

Upvotes: 1

Related Questions