HTML:- Inline style

<!DOCTYPE html>
<html>

<head>
 <meta name="viewport" content="width=device-width, initial-scale=1">
 <title>Inline Style</title>
</head>

<body>

 <div style="background:red;color:white;">
  Inline style Example
 </div>

</body>

</html>




Used of:- 

Inline style


  • Usually we can write styles in three types (inline style,external style,internal style)
  • The inline styles are those when "style"attribute written within the html tag.
  • Using it we can write css properties.
  • But using inline properties are not encouraged.

Output:-  
Inline style Example
HTML:- Inline style HTML:- Inline style Reviewed by Network security on April 30, 2019 Rating: 5

No comments:

Useful Information

Powered by Blogger.