Ad

html id attribute

   

 HTML ID Attribute


 Information

1] The id attribute specifies a unique id for HTML element. 

2 The id attribute is used to point to a specific style declaration in a style sheet.

3] The syntax for id write a hash character (#)

 4] Then, define the CSS properties within curly braces {}

5] <h1> element that points to the id name "myHeader".

6]<h1>element will be styled according to the #myHeader style definition in the head                section


Program


<!doctype html>
<html>
<head>
<title>id Attribute</title>
<style>
#myid {
background-color:lightblue;
color:red;
padding:40px;
text-align:center;
}
</style>
</head>
<body>
<h2>The id Attribute</h2>
<p>web planning takes after a standard method of utilizing log records.

These records log guests when they visit websites.All facilitating companies do this and a portion of facilitating services' analytics.
The
data collected by log records incorporate web convention (IP) addresses,
browser
sort, Web Benefit Supplier (ISP), date and time stamp, referring/exit pages,
and
conceivably the number of clicks. These are not connected to any data that's by and by identifiable. The reason of the data is for analyzing patterns, regulating the location, following users' development on the site,
and gathering statistic data  </p>

<h1 id="myid"> ID ATTRIBUTE</H1>
</body>
</html>

OUTPUT


id attribute


Related Post :-

bold tag in html

audio tag in html

html address tag

No comments

Powered by Blogger.