Skip to content

3. Structure of an HTML Document

Deepak Kumar edited this page Jul 28, 2020 · 1 revision

<!DOCTYPE HTML>

<html>

<head>

<metacharset="utf-8">

<title>Your Website Title</title></head>

<body>

<!-- Code to design structure of the webpage -->

<p>This is an html paragraph</p>

</body>

</html>

# <!DOCTYPE HTML> --> A way to tell the browser what type of document it is.

# <html> --> Represents root of an html document, it is the container for all other html elements.

# <head> --> Contains metadata like title, character set, styles, link , scripts etc.

# # The meta element is used to specify the metadata to provide browser and search engine with technical information about the web page. like above it

# # provide info that character incoding for this html document is "utf-8".

# <title> --> used to show title of the web page.

# <body> --> contains content of the documents and all the html element to design a web page. ex:- heading, para, image, etc.

Clone this wiki locally