Introduction to HTML

HTML is a language used to put text, images, links, and other elements on a webpage. Here's a very basic HTML document:

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>My Page</title>
</head>
<body>
  Hi, here is some text.
</body>
</html>

What does this look like in a browser?

When a web browser (e.g. Chrome) reads the HTML, it creates this:

web page with text

What do the different parts mean?

web page parts explanation

What are tags?

In the HTML document above, we see:

<html>

This is called a tag. The <html> tag signifies the beginning of the document, and is an opening tag. At the end of the document we see:

</html>

Notice it has a slash / in it. That makes it a closing tag. The closing tag ends the document.

Tags help us specify where sections begin and end.

Next: The head and body HTML Tags

Comments

Leave a comment

What color are brown eyes? (spam prevention)
Submit
Code under MIT License unless otherwise indicated.
© 2020, Downranked, LLC.