HTML basic

Nelson Punch
Software-Dev-Explore
2 min readAug 19, 2019
Photo by Timothy Eberly on Unsplash

This post is about html basic structure.

What is HTML ?

HTML stand for Hyper Text Markup Language . A markup language used to describe how web content should be display. Every web browser read HTML and then present web content on screen.

What does html look like?

As for google main page it look like this.

It is a complicate HTML, but a much simpler HTML look like this

Note: Text with grey color is comment not part of HTML

HTML structure

<!DOCTYPE html>
<html>
<head>
<title>My first html</title>
</head>
<body>
<h1>My first html</h1>
</body>
</html>
<!DOCTYPE html>

This tell browser that this document is html.

<html>
</html>

HTML use open and close tag and html start with <html> end with </html> . <html> is also call element.

<body>
</body>

This is html body and everything between <body> and </body> are visible on web page.

<head>
</head>

This is html head and it is a container for metadata(data about data). Metadata is data about html document and is not visible on web page, thus, everything between <head> and </head> will will not be displayed on web page. The following tags between <head> and </head> describe metadata <title>, <style>, <script>,< meta>, <link> and <base> . For more detail about tags in <head> can go here and check it out.

This is the basic html. Really simple and easy to understand.

--

--