010 HTML Styling , Style tag and The HTML Style Attribute
HTML Styling
Style tag
The HTML Style Attribute
style="property:value"
examples
<h2 style="color:red">I am Red</h2>
<h2 style="color:blue">I am Blue</h2>
=====
<body style="background-color:lightgrey">
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
</body>
=====
<h1 style="color:blue">This is a heading</h1>
<p style="color:red">This is a paragraph.</p>
<h1 style="font-family:verdana">This is a heading</h1>
<p style="font-family:courier">This is a paragraph.</p>
<h1 style="font-size:300%">This is a heading</h1>
<p style="font-size:160%">This is a paragraph.</p>
<h1 style="text-align:center">Centered Heading</h1>
<p> </p>
<p> </p>
Style tag
The HTML Style Attribute
style="property:value"
examples
<h2 style="color:red">I am Red</h2>
<h2 style="color:blue">I am Blue</h2>
=====
<body style="background-color:lightgrey">
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
</body>
=====
<h1 style="color:blue">This is a heading</h1>
<p style="color:red">This is a paragraph.</p>
<h1 style="font-family:verdana">This is a heading</h1>
<p style="font-family:courier">This is a paragraph.</p>
<h1 style="font-size:300%">This is a heading</h1>
<p style="font-size:160%">This is a paragraph.</p>
<h1 style="text-align:center">Centered Heading</h1>
<p> </p>
<p> </p>
تعليقات
إرسال تعليق