Basic HTML Structure Tags: <html>, <head> <title>, <meta> and <body>
<html>
This tag is used to indicate that this is a HTML document. Most HTML documents should start and end with this tag.
<head>
This tag is used to indicate the header section of the HTML document, which typically includes the <title> and <meta> tags, and is not displayed in the main window of the browser.
<title>
The title is what is displayed on the upper left corner of your browser when you view a web page..
<title> tag indicate what the page content is.
<meta>
The <meta> tag information is not directly displayed when the page is rendered on the browser. Rather, this is used for the author of the HTML page to record information related to this page. Two common attributes are name and content.
<body>
The <body> tag includes the HTML body of the document.
The <body> tag may contain several attributes are listed below:
Ex: <body bgcolor="#ffffff" text="yellow">
<body background="background.jpg">
<head>
<title>
Here is the title of the HTML document.
</title>
<meta name="Ganesh " content="Sample HTML " />
</meta>
</head>
<body bgcolor="ff00ff”>
Here is the body of the HTML document.
</body>
</html>
o/p>--------------------------
Here is the body of the HTML document.
<html>
This tag is used to indicate that this is a HTML document. Most HTML documents should start and end with this tag.
<head>
This tag is used to indicate the header section of the HTML document, which typically includes the <title> and <meta> tags, and is not displayed in the main window of the browser.
<title>
The title is what is displayed on the upper left corner of your browser when you view a web page..
<title> tag indicate what the page content is.
<meta>
The <meta> tag information is not directly displayed when the page is rendered on the browser. Rather, this is used for the author of the HTML page to record information related to this page. Two common attributes are name and content.
<body>
The <body> tag includes the HTML body of the document.
The <body> tag may contain several attributes are listed below:
Attribute |
Description |
alink | The color of the links. Specifies the color of an active link in a document |
background | Specifies a background image for a document |
bgcolor | Specifies the background color of a document |
link | Specifies the default color of unvisited links in a document |
text | Specifies the color of the text in a document |
vlink | Specifies the color of the visited links in a document |
<body background="background.jpg">
So, in general, all HTML Documents have the following format:
<html> <head>
<title>
Here is the title of the HTML document.
</title>
<meta name="Ganesh " content="Sample HTML " />
</meta>
</head>
<body bgcolor="ff00ff”>
Here is the body of the HTML document.
</body>
</html>
o/p>--------------------------
Here is the body of the HTML document.
No comments:
Post a Comment