+ 3

Is it correct to open and close tag like <head>..</head> in CSS

<html> <head> <style> p{ color:red; background-color:gray; } </style> </head>

14th Jan 2021, 11:57 AM
Maliki Victor
Maliki Victor - avatar
8 odpowiedzi
+ 1
The above code is correct. However. HTML uses tags <p></p> CSS uses selector and declartation p { color: blue; font size: 12px; }
15th Jan 2021, 9:08 AM
Chris Coder
Chris Coder - avatar
+ 3
Mmmh owky...
14th Jan 2021, 12:24 PM
Maliki Victor
Maliki Victor - avatar
+ 3
Sure..
15th Jan 2021, 9:56 AM
Maliki Victor
Maliki Victor - avatar
+ 2
Mmmmh... How Because closing tag and opening tag Its consist in HTML
14th Jan 2021, 12:17 PM
Maliki Victor
Maliki Victor - avatar
+ 2
Abhay I mean that,, closing tags and opening its consist in HTML and not CSS.... BUT why..(back to question)
14th Jan 2021, 12:20 PM
Maliki Victor
Maliki Victor - avatar
+ 1
Yah it's correct
14th Jan 2021, 12:04 PM
Atul [Inactive]
0
You mean?
14th Jan 2021, 11:58 AM
Abhay
Abhay - avatar
0
Unable to understand. Please elaborate
14th Jan 2021, 12:21 PM
Atul [Inactive]