Your browser does not support JavaScript!
Upvotes Anonymous 1 User 0

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:
What do the different parts mean?
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 </html> closing tag ends the document.

Tags help us specify where sections begin and end.
Was this helpful?

Tags

Comments

Leave a Comment

I agree to the Terms of Service
Design © 2015, Downranked, LLC.,
Original user code contributions under MIT License