Free web site overlay code missing a img close tag ... so not validating on w3 validator


#1

Hi admins,

There is an issue with the FREE overlay (footer) HTML code …

There is a " (speechmark) missing in the code.

Here is the code currently:

<div style='text-align: right;position: fixed;z-index:9999999;bottom: 0; width: 100%;cursor: pointer;line-height: 0;display:block !important;'><a title="Hosted on free web hosting 000webhost.com. Host your own website for FREE." target="_blank" href="https://www.000webhost.com/?utm_source=000webhostapp&amp;utm_campaign=000_logo&amp;utm_medium=website_fsprojects&amp;utm_content=footer_img"><img src="https://cdn.rawgit.com/000webhost/logo/e9bd13f7/footer-powered-by-000webhost-white2.png" alt="www.000webhost.com"></a></div>

What it should be =
<div style='text-align: right;position: fixed;z-index:9999999;bottom: 0; width: 100%;cursor: pointer;line-height: 0;display:block !important;'><a title="Hosted on free web hosting 000webhost.com. Host your own website for FREE." target="_blank" href="https://www.000webhost.com/?utm_source=000webhostapp&amp;utm_campaign=000_logo&amp;utm_medium=website_fsprojects&amp;utm_content=footer_img"><img src="https://cdn.rawgit.com/000webhost/logo/e9bd13f7/footer-powered-by-000webhost-white2.png" alt="www.000webhost.com" /></a></div> (The img close tag is included here).

Can this be updated please as my and others sites are not able to validate correctly due to this. Thank you :slight_smile:


#2

I can’t see it - what line/tag is it on? :slightly_smiling_face:

While I agree the lack of closing tag is annoying, that is HTML5’s fault, the latest HTML standard. In that standard, there is no closing tag.


#3

The very last line i.e. alt=“www.000webhost.com/>


#4

Ah yes, I meant the missing speech mark - where is that? I saw the closing tag thing (and edited above to say it probably doesn’t matter).


#5

Ah, it’s probably because I am using XHTML 1.0 transitional validation then. My apologies as I wasn’t aware of the modern coding standards. I wrote mine to be only HTML 4.0 and XHTML 1.0 transitional.

It works in all browsers so I’m thinking just remove my validator images off my site entirely.


#6

No worries, and fair enough. Yes, the footer JS code probably is not smart enough to only add a close if the DOCTYPE is pre-HTML5. However, modern browsers tend to be very forgiving, so I imagine devs may decide it’s not worth the effort for the minor extra level of correctness.

Here is an intro to HTML5 - see the simplified doctype!


#7