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.

Setting default language in HTML 5.

Featured Replies

My company (Kirkby Microwave) website was coded in XHTML, and had no errors on the W3C validator. It has been suggested that nobody uses XHTML, and I should switch to HTML 5. So I changed the bit at the top of the webpages to read

<!DOCTYPE html >
 

After making some minor changes, mainly removing the setting of the width inside the <img src> tag, I can get pages to almost validate. Some don't, but that is simply because I have not got around to fixing the errors. But the W3C validator is always complaining

Warning: This document appears to be written in English. Consider adding lang="en" (or variant) to the html start tag.

I can't seem to see how to fix this.  Despite reading the links on the W3C validator page, no matter what I try does not work! Feel free to look at the source of my homepage, and let me know how to fix this.

I only speak English, so just want to leave it as English, and nothing else.

I did not post the link to my homepage, as I'd be interested if anyone that Googles Kirkby Microwave finds a .com domain. There is a .com, but it should be hidden from Google, but anyone on the BT broadband network may be able to see it, as the IP address range is restricted to those that BT seems to serve me up.

Dave

Edited by drkirkby

You add it to the opening html;

<html lang="en">

Edit: I see you're missing the opening html on your home page, it should be;

<!DOCTYPE html>
<html lang="en">
<head>
<!-- Head bits -->
</head>
<body>
<!-- Body bits -->
</body>
</html>

:)

Edited by BrowserBugs
Forgot summit

  • Author

Thank you. The fact I had the opening html missing, is probably why no attempt to fix the problem worked.

It must be time to write a shell script to change all the pages, as I don't want to do it manually.

Dave

 

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.