ITSourceCode.com

We Exist to Provide 100% Free Source Code and Tutorials

Custom Search

34-HTML Style

HTML style attribute is a preview into the Cascading Style Sheet (CSS) environment. As a matter of fact, the code that will be used with style is the same as the CSS code or also known as Internal CSS. CSS styling offers unlimited customization of HTML elements and web page design.

 

HTML attributes and tags becameHTML attributes and tags became outdated when the style attribute was presented into the HTML language together with CSS. Manipulating HTML elements is now accomplished by using CSS styling.

 

Example:

<p id="Paragraphcontent" style="color: #0000FF;">
   This paragraph's font has been changed to color blue.
</p>

 

Result:

This paragraph’s font has been changed to color blue.

 

Another example:

<p id="Paragraphcontent" style="color: #0000FF; Font-size:25px;">
   This paragraph's font has been changed to color blue.
</p>

 

Result:

This paragraph’s font color and size has been changed.

Facebook Comments

Check Your Domain Ranking

Leave a Reply

Your email address will not be published. Required fields are marked *

ITSourceCode.com © 2016 Frontier Theme

Subscribe For Latest Updates

Signup for our newsletter and get notified when we publish new articles for free!