Skip to content

Instantly share code, notes, and snippets.

@timbergus
Last active June 2, 2024 15:10
Show Gist options
  • Save timbergus/5812402 to your computer and use it in GitHub Desktop.
Save timbergus/5812402 to your computer and use it in GitHub Desktop.
Basic HTML5 "Hello World!" document structure.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Hello World! Site Title</title>
</head>
<body>
<h1>Hello World!</h1>
</body>
</html>
@konijn
Copy link

konijn commented Jun 10, 2018

Greetings, this is the #1 hit on Google for 'Hello World HTML'. Please consider a meta tag for charset, ideally utf-8?

@vakenbolt
Copy link

Agreeing with the comment above. Please consider adding the following as the first entry inside of the <head> tag...

<meta charset="UTF-8">

Thank you!! 🙏

@jslicer
Copy link

jslicer commented Nov 6, 2019

Would not be a bad idea to declare a language for the page as well:

<html lang="en">

@timbergus
Copy link
Author

I'm pretty sorry but now it's the first time I have been notified about your messages. I have already added your changes. Thanks a lot for your comments :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment