×
FREE ASSISTANCE FOR THE INQUISITIVE PEOPLE
Tutorial Topics
X
softetechnologies
Introduction hex color code
Elements: html head title body - HTML 5
2693    Arnab De    03/05/2017

Introduction

html, head, title, body are the four html tag. These are the basic tag which may use almost every .html file.

HTML

None of the tag in a html file is mandatory except <html> tag. Each html file should start with a <html> tag and end with a </html> tag.

	<html>
		........
	</html>
softetechnologies

HEAD

This tag is generally placed just after the <html> tag. It is also closed with </html>. In the advance web designing we are create the links of various .css, .js file. We can also define different custom CSS, JavaScript, JQuery Code in this section of the HTML.

	<html> 
		<head> 
			Hello This is heading. 
		</head> 
	</html>
head tag without using h1 tag
Output Of head tag without h1 tag

The text under the<head> tag will display in the web browser as a normal tag. To make it actual heading we have to use another tag called <h1>. It increasing the text size and make it bold automatically.

	<html> 
		<head> 
			<h1>Hello This is heading.</h1> 
		</head> 
	</html> 
head tag with h1 tag
A Simple <head> tag by using <h1>

The other version of the <h1> tags are <h2>, <h3>, <h4>, <h5>, <h6>. The numbers related to the tags are increase in inverse ratio of the size of the text.

	<html> 
		<head> 
			<h1>Hello This is heading.</h1> 
			<h2>Hello This is heading.</h2> 
			<h3>Hello This is heading.</h3> 
			<h4>Hello This is heading.</h4> 
			<h5>Hello This is heading.</h5> 
			<h6>Hello This is heading.</h6> 
		</head> 
	</html> 
head tag with h1 to h6 tag
Example of H1 to H6
softetechnologies

TITLE

<title> tag are generally used with in the <head> tag. It defines the title of the page. This title will display on the title bar of the web browser. We can places any image in this tag. We can specify any name for my page but a descripted title will preferable. We can use it anywhere in the <head> tag. No matter it define above or below of the <h1> tag.

	<html>
		<head>
			<title>This is our first page</title>
			<h1>Hello This is heading.</h1>
		</head>
	</html>
title tag
Title Tag
softetechnologies

Body

<body> tag is placed just after the <head> tag. Now-a-days every code writes with in the body tag. Even the header part of the page writes under the <body> tag. This tag has six attributes

  1. bgcolor : It define the background colour of the page. We can set any colour hex code as a value of the bgcolor.
  2. background : It specify a image source which placed as a background image of the page. If this property set, then background colour will not appear on the screen.
  3. text : It define the text colour of the body.
  4. link : It define the colour of the hyperlinked text of the page.
  5. alink : It define the colour of the active hyperlinked text of the page.
  6. vlink : It define the colour of the already visited hyperlinked text of the page.
	<html>
		<head>
			<title>This is our first page</title>
			<h1>Hello This is heading.</h1>
		</head>
		<body bgcolor=”gray” text=”black” link=”white” alink=”red” vlink=”green”>
			Any Text Here
		</body>
	</html>
Introduction hex color code
softetechnologies
Author Details
Arnab De
I have over 16 years of experience working as an IT professional, ranging from teaching at my own institute to being a computer faculty at different leading institute across Kolkata. I also work as a web developer and designer, having worked for renowned companies and brand. Through tutorialathome, I wish to share my years of knowledge with the readers.
Enter New Comment
Comment History
No Comment Found Yet.
Sri Sri Ramakrishna Paramahamsa
God is in all men, but all men are not in God; that is why we suffer.
Sri Sri Ramakrishna Paramahamsa
3
59.22
Today So Far
Total View (Lakh)
softetechnologies
26/05/2018     44271
01/01/2018     36694
25/06/2018     36199
28/06/2017     34734
02/08/2017     33283
01/08/2017     27699
06/07/2017     27445
15/05/2017     27055
14/07/2017     22750
11/09/2018     21388
softetechnologies