Saturday, 16 November 2013

CSS Simple program-Color

Designing the webpage for different styles of colors is done using CSS(Cascading Style Sheet)

It is just like push of button the things are automated by a process.

In the program below we observe that the color are not properly colored why does that happen and how can it be fixed will be looked up in the next post

1:  <?xml version = "1.0" encoding="utf-8"?>   
2:  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">   
3:  <html xmlns = "http://www.w3.org/1999/xhtml">   
4:   <head>  
5:  <title>CSS Styling</title>  
6:  </head>  
7:  <body>  
8:  <p>  
9:  Red  
10:  </p>  
11:  <p>  
12:  Blue  
13:  </p>  
14:  <p>  
15:  Green  
16:  </p>  
17:  <style>  
18:  p  
19:  {  
20:  color:red;  
21:  }  
22:  p  
23:  {  
24:  color:blue;  
25:  }  
26:  p  
27:  {  
28:  color:green;  
29:  }  
30:  </body>  
31:  </html>  
Post a Comment