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
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
+ 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