Colour and text will not change in a paragraph

0 Steaven Gray · August 23, 2015
Hey Guys,
I'm a noob when it comes to web stuff.
I'm taking Bucky's extremely interesting and entertaining HTML/CSS tutorial.
I'm having trouble changing the colour and text of a paragraph.
the header changes but the para won't. Can anyone suggest something or find fault with the code?
Your attention in this matter would be greatly appreciated.
Cheers






<!doctype html>

<html><!--must open the page with the html tag-->
<head>
<title>This is page  3</title>  <!--the title is displayed in the tab of the browser-->

    <style type="text/css">   <!--- must always have this in head-->
        p {color:#FF0000;
        font-family:georgia;
        line-height:150%}
        
        h1 {color:#FF0000;
        font-family:georgia}<!--RGB values to select web colours-->
    </style>

</head>    

<body>
<br />
<h1>CSS cascading style sheet formats the page</h1>

<p>CSS cascading style sheet formats the page
CSS cascading style sheet formats the page
CSS cascading style sheet formats the page
CSS cascading style sheet formats the page
CSS cascading style sheet formats the page</p>


Post a Reply

Replies

Oldest  Newest  Rating
+1 Szymon Zubal · August 25, 2015
Yeah I had the same problem today when creating comments on my CSS code as I looked it up on google and CSS uses different comments symbols. Instead of <!-- .. --> use /* ..... */ to add a comment:)
0 Steaven Gray · September 11, 2015
Hey Guys
Thanks a lot for your feedback greatly appreciated.
SG
0 Jeff the Killer · August 24, 2015
justdelete the comments on ur style and it works on me

<html>
<head>
<style type="text/css">
h1{color:#FF0000;
font-family:georgia;
line-height:150%}

 p{color:#FF0000;
font-family:georgia;
line-height:150%}</style>
</head>
<body>
<br>
<h1>CSS cascading style sheet formats the page</h1>

<p>CSS cascading style sheet formats the page
CSS cascading style sheet formats the page
CSS cascading style sheet formats the page
CSS cascading style sheet formats the page
CSS cascading style sheet formats the page</p>
</body></html>
  • 1

HTML / CSS / Web Design

107,164 followers
About

Discuss, share, ask, learn and teach HTML5 and CSS3.

Links
Moderators