How To Use Style Attributes To The HTML Page

admin_img Posted By Bajarangi soft , Posted On 27-09-2020

In Html style Attributes uses to give a style to the content it means styles attributes provides the color,text size,background color ,font,text alignment to the HTML Page(element).

Result Of Style Attributes

1.Give an a Example of Style Attributes

<!DOCTYPE html>
<html>
<body style="background-color:#1cd51c;">

<h1 >This is a heading</h1>
<p>This is a paragraph.</p>

</body>
</html>
1.Give an a Background color,size,align, text color  to specific element using  Style Attributes
<!DOCTYPE html>
<html>
<body style="background-color:#1cd51c;">

<h1 style="background-color: #e51515;color:#dbdbee;font-family:arial;font-size:300%;text-align:right">Bajarangi Soft</h1tyle>
<p style="background-color: #65a3d9;color:rgba(33,31,31,0.82);font-family:New Roman; font-size:100%;text-align:center;">Bajarangi Soft.</p>

</body>
</html>


 

Related Post