Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,207,163 members, 7,998,025 topics. Date: Saturday, 09 November 2024 at 02:46 AM |
Nairaland Forum / Science/Technology / Programming / Please Help A Beginner, CSS Not Working. (586 Views)
When Does A Beginner Become A Programmer, And Should Start Applying For Jobs? / Which Programming Language Should A Beginner Start With? / After 10days Of Coding With Html, Css And Javascript Forum4africa Is Ready (2) (3) (4)
Please Help A Beginner, CSS Not Working. by Nobody: 5:53pm 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 Jas80: 6:09pm On Oct 13, 2021 |
Becalina: Background color or font color? Upload the full code |
Re: Please Help A Beginner, CSS Not Working. by Nobody: 6:37pm On Oct 13, 2021 |
Jas80:The font color and it refused to change , I tried the background color code too and it didn’t change |
Re: Please Help A Beginner, CSS Not Working. by Nobody: 6:38pm On Oct 13, 2021 |
Jas80: Font color. Everything? |
Re: Please Help A Beginner, CSS Not Working. by Jas80: 6:41pm On Oct 13, 2021 |
Are you on WhatsApp? |
Re: Please Help A Beginner, CSS Not Working. by akus6060(m): 6:53pm On Oct 13, 2021 |
Write out the complete code so that we can figure out the error and not just the CSS.l mean let see the body of ur HTML and I can't find your opening head tag. Becalina: |
Re: Please Help A Beginner, CSS Not Working. by Nobody: 6:59pm On Oct 13, 2021 |
akus6060:okay I will do that now, thank you so much |
Re: Please Help A Beginner, CSS Not Working. by HaywhyA: 7:20pm On Oct 13, 2021 |
akus6060:its Becalina... I tried to upload the complete code but I was banned and my code was deleted, I don’t know why that is. Do you know what else I can do. |
Re: Please Help A Beginner, CSS Not Working. by HaywhyA: 7:20pm On Oct 13, 2021 |
Jas80:yes but I am not with my phone now, can you help me here |
Re: Please Help A Beginner, CSS Not Working. by Nobody: 8:04pm On Oct 13, 2021 |
Posting a screenshot of your code would help get you optimum help. I noticed there’s no opening head tag. We can’t do much if we can’t see the full code. |
Re: Please Help A Beginner, CSS Not Working. by Amostatics(m): 12:41am On Oct 14, 2021 |
Becalina: <!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> CONTENT CONTENT CONTENT </head> |
Re: Please Help A Beginner, CSS Not Working. by divine404: 7:07am On Oct 14, 2021 |
The "type" attribute in the <style> tag is not required in modern web documents, and linking to an external stylesheet using the <link> tag is preferred.
|
Re: Please Help A Beginner, CSS Not Working. by olukunle50: 7:07am On Oct 14, 2021 |
Paste the whole code |
Re: Please Help A Beginner, CSS Not Working. by olukunle50: 7:10am On Oct 14, 2021 |
You didn't specify h2 tag in your body <body> <h2> CONTENT CONTENT <h2/> </body> note: all h2 tags will have purple colour with that. |
Re: Please Help A Beginner, CSS Not Working. by akus6060(m): 7:41am On Oct 14, 2021 |
It would have been better if u could screenshot the code for us to decipher the error and since u are styling your h2, u are supposed to have h2 in the body of your html .Also have u tried adding an opening head tag for your styling? Because I can only see closing head tag. HaywhyA: |
Re: Please Help A Beginner, CSS Not Working. by Jas80: 7:41am On Oct 14, 2021 |
Amostatics: Your stylings should be between ur head tag 1 Like |
Re: Please Help A Beginner, CSS Not Working. by Nobody: 1:33pm On Oct 14, 2021 |
Is that the whole code? Where is the h2 you want to apply the style to? |
Re: Please Help A Beginner, CSS Not Working. by Frontend: 3:24pm On Oct 15, 2021 |
Why are you styling inside your html,just create another file name it index.css remember to place the css link before the head tag |
Re: Please Help A Beginner, CSS Not Working. by Kay005: 6:44am On Oct 16, 2021 |
Becalina: Boss, try and know how to you use external styling method to link your CSS, JavaScript codes to your html codes using different sheet...it will help you at the long run. Especially JavaScript, when creating game apps you can have up to 5 different sheets for java serving different purposes all linked to your html code... continue watching videos, go to nairaland, Google and go through their source codes and also use Google search to solve problems when you are stucked. |
Re: Please Help A Beginner, CSS Not Working. by Nobody: 7:54am On Oct 16, 2021 |
Kay005:That’s how beginners always start. The tutorial he’s following probably started with inline css, then css inside HTML, and eventually external stylesheets. 1 Like |
(1) (Reply)
What Is The Next Course To Cover After This / Laravel Vuejs Chat App / Help With This Vue Js Code
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 25 |