Skip to content

Latest commit

 

History

History
54 lines (34 loc) · 1.47 KB

LEARN_HTML.md

File metadata and controls

54 lines (34 loc) · 1.47 KB

❤️‍🔥 Introduction to HTML

HTML is a markup language that defines the structure of your content; it consists of a series of elements.

Watch Part 1 to 4

What is an HTML element?

Element

An element can also have attributes like the following:

Element

A void Element is an element that has no contents so they do not need a closing tag

<img src="images/codingclub.png" alt="My test image" />

Structure of an HTML File

An HTML file contains a root HTML element. The head and body elements are contained within it; the body element contains all of the document's contents, while the head element contains the document's metadata.

Code:

<!DOCTYPE html>

<html lang="en-US">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width" />
    <title>My test page</title>
  </head>

  <body>
    <h1>HELLO There</h1>
  </body>
</html>

Result:

🤿 Diving Deeper


⏪ Back: Setting Up Workspace • ⏭️ Next: Introduction to CSS