Inline CSS

Advertisements

Prev Tutorial Next Tutorial

Inline Styles Sheet

Inline CSS is used with any elements of Html where it is used on page. Here we use inline css for paragraph, the example shows how to change the color and the left margin of a paragraph:

Example of inline css for <p> tag

Example

<html>
<body>
<p style="color:red; margin-left:20px">This is paragraph.</p>
</body>
</html>

Result

This is paragraph.

Example of inline css for <h1> tag

Example

<html>
<body>
<h1 style="color:green; font-size:20px">This is h1 Heading.</h1>
</body>
</html>

Result

This is h1 Heading.

For using inline css we need style attribute to set all the properties of Html elements(<p>, <body>, <img>).

Advantage of inline css

  • Less Loading time
Inline CSS

Watch this Video

Always prepare before you make a choice. There is so much info about africansermonsafaris at http://africansermonsafaris.com/category/mount-kilimanjaro-climbing/.


Prev Tutorial Next Tutorial

Google Advertisment

Buy This Ad Space @$20 per Month, Ad Size 600X200 Contact on: hitesh.xc@gmail.com or 9999595223

Magenet is best Adsense Alternative here we earn $2 for single link, Here we get links ads. Magenet

For Projects 9999595223

Google Advertisements


Buy Websites 9999595223

Buy College Projects with Documentation Contact on whatsapp 9999595223. Contact on: hitesh.xc@gmail.com or 9999595223 Try this Keyword C++ Programs

Advertisements