CSS color and background attributes #Part 3

CSS color and background attributes #Part 3



color

  Sets an d Text colors a color name or color code.

Background- color

        Specifies the color in an elements background. 

Background-image

   Sets the background images.

Background- repeat

    With a background images specified, sets up how the image repeat throughout the page. repeat-x, repeat-y, repeat, no- repeat.


HTML Code

<h1>Code Pocket</h1>

<p>Code Pocket is a website that you can learn HTML, CSS, Javascript and Bootstrap. Code Pocket is a website that you can learn HTML, CSS, Javascript and Bootstrap. Code Pocket is a website that you can learn HTML, CSS, Javascript and Bootstrap. Code Pocket is a website that you can learn HTML, CSS, Javascript and Bootstrap. </p>


SCC Code

<style>

h1

{

color:red;

background-color: yellow;

}


p

{

background-image:url(http://surl.li/ccrby );

background-repeat:repeat-x;

}

</style>






Try it Yourself...

what you think about this article ??

Post a Comment

Previous Post Next Post