html tags

     

 HTML tags:)



<html> tags:- 
We know that html is a collection of predefine tages. This tags are used to create program according to requirement.  Every tags consists a special meaning. There are two types of html tags. Every tags must be written in left and right angular bracket.
1.Paired/ closed tags. 
2. Unpair/ unclose tages.




 1. Paired/closed tags:- It refers both opening and closing tags.
 <body> Welcome </body>
 2. Unpaired/unclosed tags:- It refers either opening or closing tags.
Welcome <br> 
To <br>
Html </br> 
Attribute of tags.
Every html tags consists of own attributes/properties. The value of attribute is enclosed within single or double quort. 
Eg:-
<body>


 bgcolor="green"
 or bgcolor='green'
Eg:-
<body bgcolor=”red” text=”green”> 
---------------------- 
---------------------- 
</body>

 <body>  tag:- 
This tag is used to represent the over all content of web page. 
Attributes of <body> tags:- 
 Bgcolor:- to change the background color of web page. 
 Text- to change the text color of web page. 
Background:- to insert  background-image on web page. 
 Vlink:- to change the color of visited link. 
Alink:- to change color of active  link.
 Link:- to change the color of link
 Eg:- <body vlink=”red” alink=”yellow” link=”green”> 

<br> :- to generate the new line.
Q. write a program in html to change background and forground color.
<html>

 <head>

 <title>  my address</title>
 </head>

 <body bgcolor="red"  text="green">

 Neeraj kumar singh.

<br> Working on amity

 <br> Mob=”7277062425”

 </body>

 </html> 










i hope this post is useful for you!
thank you



Comments

Popular posts from this blog

python pattern programming

What is function?What is function in python?

Searching and sorting in array