easy html css question, HTML, CSS |
easy html css question, HTML, CSS |
Alex G |
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 |
Christian J |
Mar 28 2012, 02:45 PM
Post
#2
|
. Group: WDG Moderators Posts: 9,656 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. |
Lo-Fi Version | Time is now: 23rd April 2024 - 03:48 PM |