The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> easy html css question, HTML, CSS
Alex G
post Mar 28 2012, 01:51 PM
Post #1





Group: Members
Posts: 1
Joined: 28-March 12
Member No.: 16,813



Hi I'm starting to play around with html and css as in the near future I would like to make a website.

anyway, what I can't seem to do is make my css code work with html.

this is what i have

<html lang="en">
<LINK REL=STYLESHEET HREF="homeaj.css" TYPE="TEXT/CSS" MEDIA=SCREEN>


<head>

</head>
<body> <h1 id="title"> 123456
</h1> </body>
</html>


and the CSS is:

#title { font-style:italic;
}



Can someone please help me and find where I have gone wrong? Because when I preview it, '123456' isn't in italics.

Thank you
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
 
Reply to this topicStart new topic
Replies
Christian J
post Mar 28 2012, 02:45 PM
Post #2


.
********

Group: WDG Moderators
Posts: 9,651
Joined: 10-August 06
Member No.: 7



The LINK element must be inside the HEAD section. Also check that the file homeaj.css exists in the same directory.

You should always use a Doctype.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 18th April 2024 - 11:36 AM