Help can someone help me fix my code and explain it | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Help can someone help me fix my code and explain it

<!DOCTYPE HTML> <html> <article> <strong> <style font-size: "20";>Why you need to learn to code in 2023</style> </strong> </article> <section> Technology is getting more advanced every single day, and soon if you don’t know how to code, it will be like not knowing how to read. </section> </html> The “why you need to learn to code in 2023” won’t appear for some reason, i don’t know if it has to do with the style or something else, can someone tell me how to fix this? Thanks

28th Jul 2023, 4:44 AM
mauroPerin
2 Answers
+ 4
mauroPerin , The issue with your code is that you're using the `<style>` tag incorrectly. use specify a CSS property and value inside the `<style>` tags. See this modified version of your code.. https://code.sololearn.com/W91JG4QFNU31/?ref=app you should learn this lesson for better performance. https://www.sololearn.com/learn/courses/css-introduction
28th Jul 2023, 7:20 AM
Darpan kesharwani🇮🇳[Inactive📚]
Darpan kesharwani🇮🇳[Inactive📚] - avatar
+ 3
mauroPerin Always this is a necessary tag for html: <html> <head> <title> you can write the title under the head tag and tag is mandatory for title and links.</title> </head> <body> <!-- write anything what you want --> </body> </html> Now, you can use font stlye in paragraph tag or heading tag as you wish, keep it mind <html>, <body> tag is always important for html and <head> tag important for title and links etc , for more detail please read the full course html with practice
28th Jul 2023, 5:34 AM
Sakshi
Sakshi - avatar