Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Few errors

Featured Replies

Just went to vaildate my website and its giving me 30 errors, Most of them are <img> tags for some strange reason:

 

Line 22, Column 51: there is no attribute "WIDTH"

<IMG SRC="images/logo.png" ALT="some text" WIDTH=800 HEIGHT=100></div>

or

 

Line 22, Column 33: there is no attribute "ALT"

<IMG SRC="images/logo.png" ALT="some text" WIDTH=800 HEIGHT=100></div>

 

or

 

Line 22, Column 65: element "IMG" undefined

<IMG SRC="images/logo.png" ALT="some text" WIDTH=800 HEIGHT=100></div>

 

Is the code im using old or misspelt? etc..?

 

I also have

 

Line 122, Column 77: end tag for "IMG" omitted, but OMITTAG NO was specified

<A HREF="packfour.html"><IMG SRC="images/packagefourinfo.png" ALT="Home"></A>

 

or

 

Line 131, Column 3: document type does not allow element "p" here; missing one of "object", "ins", "del", "map", "button" start-tag

<p>I give you my word that the performance such as uploading, downloading

 

Are these just simple errors?

with your img issues you need to add quotes around your widths so they should look like this:

 

<IMG SRC="images/logo.png" ALT="some text" WIDTH="800" HEIGHT="100"></div>

 

 

Also what doctype are you using as really you should be coding in lower-case rather than capitals.

 

The other errors look like you might not have closed a tag somewhere and so the bits of code that are showing errors is because you aren't allowed to have those tags within the element you have forgotten to close.

 

If these suggestions don't work, it might help to either post a link to the page in question or post the whole code.

If you make your pictures the right size you don't need to worry about it.

true the width and height don't need to be added to the image if the images are the right size, but if those attributes are needed within the element then they still need to be coded correctly for them to validate :pp

  • Author

Wow really who would of thought that caps mattered! My website is now 100% valid with no errors. Thanks guys!

 

Rep each.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.