HTML File Format Structure
An HTML file is composed of three parts:
- HTML version information in a line
- A header section for declarations
- A body section where the web page information is written
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>Heading</h1>
<p>paragraph.</p>
</body>
</html>
In the above code example, DOCTYPE HTML defines that this code is of HTML5 version.
HTML File Format | .html Extension
HTML, or Hyper Text Markup Language, is the extension for web pages. It is the most basic file that defines the structure of the web page to be displayed. HTML files can be loaded from local storage or received from the server while browsing.
The HTML files are made up of elements like forms, texts, images, animations, etc. These elements are represented in the form of tages. HTML can also be embedded with a scripting language like JavaScript.
Contact Us