Skip to content

Instantly share code, notes, and snippets.

@joemsak
Last active December 20, 2016 18:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joemsak/318a971021339e84d7a36443b1e1b936 to your computer and use it in GitHub Desktop.
Save joemsak/318a971021339e84d7a36443b1e1b936 to your computer and use it in GitHub Desktop.
<!-- This is a COMMENT in HTML ... it doesn't appear in the browser window. I can use it to explain the parts to you -->
<!-- EXAMPLE HTML BELOW: -->
<!DOCTYPE html>
<!-- DOCTYPE tells the browser what version of HTML you are using. The latest spec is just 'html' -->
<!-- The most basic tag is the HTML tag. It surrounds everything except the DOCTYPE -->
<html>
<head>
<!-- The HEAD tag is where you put information about your web page. It doesn't show in the browser window -->
<title>Hello, World!</title>
<!-- Except for the TITLE tag, which shows in the tab name! -->
</head>
<body>
<!-- Another basic HTML tag, the BODY. It's where all viewable content should go -->
<h1>Hello, World!</h1>
<!-- The HEADING1 tag. It is a large type title! -->
</body>
</html>
<!--
When you see the tags with a slash like this: </TAGNAME> they are the "closing" tags.
All HTML tags open and close, usually with viewable content in between.
-->
<!--
That's it, that's the HTML you need to say Hello, World
See below for the version without comments
-->
<!DOCTYPE html>
<html>
<head>
<title>Hello, World!</title>
</head>
<body>
<h1>Hello, World!</h1>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment