+ 1
CSS basic Question
Good afternoon from malaysia, im a beginner know nothing about design and programming, so i just started CSS basics fundamentals. below are from the training theory. The HTML: <head> <link rel="stylesheet" href="example.css"> </head> <body> <p>This is my first paragraph.</p> <p>This is my second paragraph. </p> <p>This is my third paragraph. </p> </body> The CSS: p { color:white; background-color:gray; } My question is the CSS first line start with p { may i know this tag referring which tag above? please forgive my broken english, im trying my best to practice. Regards, SJ
3 Answers
+ 8
https://code.sololearn.com/WJBrImtUA5gm/?ref=app
It's helpful for you check it and correct your <link rel="style/sheet" href="style.css"> it is .đ
+ 2
The p in <style> refers to every <p> tag in document.
https://www.sololearn.com/learn/CSS/1080/?ref=app
https://www.w3schools.com/cssref/css_selectors.asp
0
Good day Shang Jun! This is not an answer but I believe the best way to learn is always try it yourself and you can do it easily in SoloLearn Code Playground. đ
In this case, here's the result for your reference:-
https://code.sololearn.com/WCH3ErpDNq2z/?ref=app