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.

Validation issue - please help!

Featured Replies

Before I go completely nuts please can someone help me.

 

I have a validation issue. Something to do with the script tags.

 

Any help much appreciated.

 

My site

 

I should probably have pointed out at it's the PIWIK stuff that's causing the problem, but I have it on my other sites with no issues.

you don't have a <script> start for the code in the HTML file ie. before line 13.

  • Author

you don't have a <script> start for the code in the HTML file ie. before line 13.

 

It should have...I've been playing around with it and forgot to upload the proper version. If you look now there are 4 errors to do with both scripts at the top and bottom of the page.

In line 12 you need to define type e.g type="text/javascript"

 

Piwik part - It's because you have the piwik script in between the </body> and </html> tags, which isn't allowed

  • Author

Ok smashing - all fixed - many thanks!

 

Can someone explain to me why I need to define the script type twice? I've played with these script tags a few times and they don't work any other way....but I don't get why you need type="text/javascript" twice?

well, line 12 needs the type="text/javascript" on it

 

should the piwik code be before </body> ?

Ok smashing - all fixed - many thanks!

 

Can someone explain to me why I need to define the script type twice? I've played with these script tags a few times and they don't work any other way....but I don't get why you need type="text/javascript" twice?

 

 

because one is the defintion for the external file you are loading and the other is for the code you are inserting after.

  • Author

because one is the defintion for the external file you are loading and the other is for the code you are inserting after.

 

Ah gotcha! Thank you.

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.