Thursday, December 22, 2016

How to use CSS style code using in HTML - Web development

CSS Style in HTML

Hi! Greetings! This is Manikandan. Thank you to visitors to continue reading of my blog. Today I wanna going to show you how to use CSS styles in HTML. What is CSS cascading style sheet. Using CSS codes you can change or apply styles for HTML elements. i.e. Color of text, background color of paragraph. Etc.,

How to use CSS style commands in code

Format of CSS code:

<tagname style="property:value;">

example :

<p style="text-align:center;color:red">Hi! Greetings. I am a paragraph with red colored text and centered.</p>

example code with Cascade style sheet commands.


<HTML>
<HEAD>
<TITLE>Web Development Example</TITLE>
</HEAD>
<BODY>

<h1 title="This is heading tooltip">Heading</h1>

<p style="text-align:center;color:red">Hi! Greetings. I am a paragraph with red colored text and centered.</p>

</BODY>
</HTML>

Output of this code:



In output you can see The heading is in centered and green colored. It is because of statement <h1 title="This is heading tooltip">Heading</h1>.

The paragraph align centered and red colored. because of statement <p style="text-align:center;color:red">Hi! Greetings. I am a paragraph with red colored text and centered.</p>

Practice these lessons. Thank you. by Manikandan.


Our some other useful websites :

To learn php - our php tutorial - http://learnandsharephp.blogspot.com/



To Post free ads - Our Free ads website - http://www.mapofmine.com and http://www.freeadsimple.com 



No comments:

Post a Comment