Creating Interactive Web Pages with HTML Forms

Shevanie Shupreeya P
featurepreneur
Published in
2 min readFeb 10, 2023

<!DOCTYPE html>

<!DOCTYPE html>

This is the declaration in HTML 5

All HTML documents must start with a <!DOCTYPE> declaration.

The declaration is not an HTML tag. It is the “information” to the browser about what document type to expect.

HTML tag:

The <html> tag represents the root of an HTML document.

The <html> tag is the container for all other HTML elements.

Always include the lang attribute inside the HTML tag, to declare the Web page's language. This is meant to assist search engines and browsers.

<html>
</html>

Comment tag

<!-- commented code in html-->

The comment tag is used to insert comments in the source code. Comments are not displayed in the browsers.

We can use comments to explain your code, which can help you when you edit the source code at a later date. This is especially useful if you have a lot of code.

head tag:

<head>
<!-- contents-->
</head>

The <head> element is a container for metadata (data about data) and is placed between the <html> tag and the <body> tag.

Metadata is data about the HTML document. Metadata is not displayed.

Metadata typically defines the document title, character set, styles, scripts, and other meta information.

The head tag can contain style, base, link, meta, NoScript, and script tags.

body tag:

<body>
<!--content-->
</body>

The body tag defines the document’s body.

The body element contains all the contents of an HTML document, such as headings, paragraphs, images, hyperlinks, tables, lists, etc.

--

--