Css:- The inline style

    An inline style may be used to apply a unique style for a single element.
    To use inline styles, add the style attribute to the relevant element. The style attribute can contain any CSS property.

Code:-

<!DOCTYPE html> 
<html> 
<head> 
 <meta name="viewport" content="width=device-width, initial-scale=1"> 
</head> 
<body> 
 <!--Inline Styles are write with HTML Elements using 'style' attribute--> 
 <div style="width:100px;height:100px;background:green;"> 
  Test Div 
 </div> 
</body> 
</html>

Css:- The inline style Css:- The inline style Reviewed by Network security on May 23, 2019 Rating: 5

No comments:

Useful Information

Powered by Blogger.