Please Help A Beginner. CSS Not Working. - Webmasters - Nairaland
Nairaland Forum › Science/Technology › Webmasters › Please Help A Beginner. CSS Not Working. (437 Views)
| Please Help A Beginner. CSS Not Working. by Nobody: 6:07pm On Oct 13, 2021 |
I just started learning website development online, I have been trying to Embed my HTML with CSS, but it seems not to work at all. Like my browsers are not seeing it . At first , I tried adding images but it won’t load, I have tried all including optimization, nothing seems to work, so I had to leave that. I tried to use a downloaded background to no avail So I started CSS, it didn’t even work at all. The code i used is <!Doctype html > <html > <html Lang=“en”> <meta charset=“utf-8”> <title>The Big Black Jack</title> <style type =“text/css”> h2 { color: purple; } </style> </head> Please help a sister out. Thank you |
| Re: Please Help A Beginner. CSS Not Working. by abdulahi90(m): 6:34pm On Oct 13, 2021 |
Becalina:state exactly what you want to archive. as per my view the code above is correct. just call the h2 where you want the effect change. |
| Re: Please Help A Beginner. CSS Not Working. by viralmaged: 8:35pm On Oct 13, 2021 |
Becalina:You didn't Add h2 in the html code as such nothing is going to happen. This can only be achieve when you define your h2 tag in the html code. E.g <h2>turn this tag to purple</h2> Hence you can now call your h2 tag from css to turn it to purple. Summary if you don't define your tags in html , your css functions will never work |
| Re: Please Help A Beginner. CSS Not Working. by Nobody: 8:48pm On Oct 13, 2021 |
viralmaged:i did add h2 but no difference <!DOCTYPE HTML PUBLIC “_//W3C//DTD HTML 4.01 Transitional//EN” “http://www.w3.org/TR/html4/loose.dtd” > <html> <html lang=“en”> <head> <meta charset=“utf-8”> <title>The Big Black Jack</title> <style type=“text/css”> h2 { color: purple; } </style> </head> <body> <h1><center>THE BIG BLACK JACK</center></h1> <nav> <ul type=“square”> <li>Home</li> <li>Menu</li> <li>Blog</li> <li>Contact</li> </ul> </nav> <h2><center>Summer Menu Items<center></h2> <p>Posted <cite>by BGB, JUNE 15, 2013</cite> Our chef has been busy. Putting together the perfect menu for the summer months. Stop by to try these appetizers and main courses while the days are still long</p> |
| Re: Please Help A Beginner. CSS Not Working. by viralmaged: 10:55pm On Oct 13, 2021 |
Create a new folder , add your html file and save it as index.html , now create a new separate css code and save My site.css and save it in the same folder. That should work Becalina: |
| Re: Please Help A Beginner. CSS Not Working. by abdulahi90(m): 8:38am On Oct 14, 2021 |
Becalina:your code is not correct. missing <head> tag Also you should define what you want to archive. text color or background color? |
Downloading Youtube Videos: A Beginner's Guide • A Beginner's Guide To Blogging In 2022 And Beyond • How To Create An E-learning Website In HTML, CSS,PHP And Mysql • 2 • 3 • 4
Get A DR 90 Do-follow Link, And Quality Backlinks Here For Free • How To Convert Micro SIM Card To Nano SIM Card • Google Adsense Account For Sale