Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Character set validation on W3C validator #150

Open
robvadai opened this issue Oct 26, 2018 · 0 comments
Open

Character set validation on W3C validator #150

robvadai opened this issue Oct 26, 2018 · 0 comments

Comments

@robvadai
Copy link

I've got a site published on the web, generated by Hugo.

W3C HTML validation fails because the character set is not set early enough on the generated web page.

Expected Behavior

W3C HTML validation should pass with no errors or warnings.

Current Behavior

It fails because the character set is not set early enough on the generated web page.

Possible Solution

  1. Move the <meta charset="utf-8" /> tag right after the <head> tag
  2. Remove trailing / as it is not needed in HTML5

Steps to Reproduce or Template with Error (for bugs)

https://validator.w3.org/nu/?doc=http%3A%2F%2Fthinking.segence.com%2Fblog%2Fhow-to-make-sense-of-social-media%2F

Context

I've got a site published and I expect no validation errors in order to make the site easily to scrape for web crawlers.

Your Environment

Tested in Chrome

Hugo Version:

Hugo Static Site Generator v0.49.2 darwin/amd64 BuildDate: 2018-10-11T09:48:43Z

Browser:

Chrome Version 69.0.3497.100 (Official Build) (64-bit)

Desktop or Mobile:

Mac OS High Sierra version 10.13.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant