Sitemap
OLUWATOYIN

OLUWATOYIN

1 min readJul 29, 2024

HTML5

Press enter or click to view image in full size
Photo by Andras Vas on Unsplash

HTML is the basic structure of a web page. It is known as HYPERTEXT MARKUP LANGUAGE. It is the building block upon which other elements are built on. Html is case insensitive meaning you can write tags in uppercase, lower case, or a mix of both. For example,

  • <DIV> </DIV>
  • <Div></Div>
  • <div></div>

The recommended convention is to use lowercase tags, that is: <div></div>

BROILER TEMPLATE

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Page Title</title>
</head>
<body>
</body>
</html>

The code above shows the foundation of every web page. It is the basic structure of any html page.

The broiler template has the html tag, head tag, and body tag.

HTML TAG

Get OLUWATOYIN’s stories in your inbox

Join Medium for free to get updates from this writer.

<html>

This is the root element

HEAD TAG

<head>

It contains the metadata and links to external resources

BODY TAG

<body>

It contains the visible content of the web page.

NOTE; The short cut for writing this is SHIFT + 1 + ENTER OR typing “html:5" and pressing the TAB key.

Also, Keep in mind that HTML5 is the latest version, and it’s a good practice to use the HTML5 doctype declaration at the beginning of your HTML file: <!DOCTYPE html>.

Thanks for reading.

--

--