2 odpowiedzi
+ 7
Basically the problem is occurring because there is no proper basic element in your code. CSS( Cascading Style Sheets) from the name itself it's understandable that it's applied for styling the other elements (HTML ) , in your code there is no HTML code. So , the style has not been applied to anything. The pseudo selectors like p , #(example) all need to get defined in HTML first , or else where the styling should be applied?. First define the HTML elements then add styling accordingly. After that , you can define the functions in JS , but first what is most important is HTML if you want to add interactivity and style in your web page. For other , only data based codes , you can use JavaScript alone 👍🏻 Hope this helps!✨🍀 Best of Luck!🍀🤞🏻
12th Oct 2024, 1:47 PM
Anushka ✨
Anushka ✨ - avatar
+ 6
https://sololearn.com/compiler-playground/WZc5LvKAbI5r/?ref=app Here's a demo. Here in this code first I've declared a paragraph <p> , text in HTML and then added style to it..
12th Oct 2024, 1:50 PM
Anushka ✨
Anushka ✨ - avatar