Basic HTML Sturcture



Every HTML file must have flowing basic structure before writing any other tag.

<html>
<head>
<title> title of the page </title>
</head>

<body>
 ALL THE CONTENT OF THE PAGE HERE TAG, IMAGE, VIDEO, INFORMATION, LINKS ETC.
</body>
</html>

1. <html> tag:-

<html> tag is the starting tag where our html page starts. It is a pair or container tag

Syntax:-
<html></html>

2. <head> tag:-
An HTML document, with a <title> tag inside the head section:






Syntax:-
<head> <title>text or title</title></head>


3. <title> tag:-

         The <title> tag is required in all HTML documents and it defines the title of the document.

in the code                                                          in the browser


The <title> element:
  • defines a title in the browser toolbar
  • provides a title for the page when it is added to favorites
  • displays a title for the page in search-engine results
4. <body> tag:-
The <body> tag defines the document's body.
The <body> element contains all the contents of an HTML document, such as text, hyperlinks, images, tables, lists, etc.

Attribute used in <body> tag:-


Attribute
Description
BGCOLOR
Specifies the background color of a document

BACKGROUND
Specifies a background image for a document

TEXT
Specifies the color of the text in a document

LINK
Specifies the color of un visited links in a document

VLINK
Specifies the color of visited links in a document

ALINK
Specifies the color of an active link in a document














Comments

Popular posts from this blog

Save HTML Files

Body tag < body > < / body>

Horizontal Rule Tag