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">
  <meta charset="UTF-8">
  <title>My Page</title>
  Hi, here is some text.

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:


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:


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


Leave a comment

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