- Forums
- HTML
- How To Put CSS Style Within HTML Code In Your Web Pages
putting style with css on your webpage is easy, this post will show you how to put css style in your html code of your website [742], Last Updated: Sat May 18, 2024
wallpaperama
Wed Nov 26, 2008
3 Comments
9525 Visits
another way you can put css code in embed within the HTML code this is how you can do it:
lets say for example, i have this text and i want to make it big font with 18px and i want the color to be blue with Times New Roman font style this is how i would do it
Learn At Wallpaperama.com
as you can see, from the above example, i used style sheets to change the color and the type of font and size using style sheets
how here is the code i used:
<style type="text/css">
<!--
.wallpaperama {
color: #09F;
font-family: "Times New Roman", Times, serif;
font-size: 20px;
}
-->
</style>
<div class="wallpaperama">Learn At Wallpaperama.com</div>
hope this helps
oh but wait, there is another way you can do this. you can do the same using the style element this is how i would do it:
<div style="color: #09F;font-family: "Times New Roman", Times, serif;font-size: 20px;">Learn At Wallpaperama.com</div>
and this is how it would come out:
Learn At Wallpaperama.com
thats cool. hope you learn from me