Inline style
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.
e.g.
HTML code save as CSS_Example_06.html.
<HTML>
<HEAD>
<STYLE type = "text/css">
HR {color : white; }
H1 {font-size = 40;}
P {margin-left: 20px;}
BODY
{background-image: url ("E :\Projects\COPA\Web
Design Concepts\colorful.jpg"); }
</STYLE>
<TITLE> Arihant BOOKS </TITLE>
</HEAD>
<BODY>
<H1>Arihant Books </H1>
<P> A wide range of books for school curricula,
polytechnic, competitive and recruitment
examinations are published by <B> Arihant
Publications India Ltd. </B> </P>
<HR style = "color: black"> For any query
e-mail at info@arihantbooks.com and
crm@arihantbooks.com or dial +91-11-40546380
</BODY>
</HTML>
Comments
Post a Comment