Sunday, June 4, 2017

Describe about id attribute & css margin.

1.The id Attribute

To define a specific style for one special element, add an id attribute to the element:
<p id="p01">I am different</p>
then define a style for the element with the specific id:

Example

#p01 {
    color: blue;
} 
 

2.CSS Margin

The CSS margin property defines a margin (space) outside the border:

Example

p {
    border: 1px solid powderblue;
    margin: 50px;
}