How can I add html5, javascript and css3 in the same text | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 1

How can I add html5, javascript and css3 in the same text

14th Sep 2018, 1:04 AM
Rishu Patel
Rishu Patel - avatar
3 Respostas
+ 2
Rishu Patel, CSS: You need to assign the style tags inside the head tag to work with CSS inside a HTML document. https://www.w3schools.com/TAGs/tag_style.asp JavaScript: To work with JS inside a HTML document it is optional to assign script tags. Place the JS script on the bottom of the body tag. Therefore HTML need to load first before JS can interact with HTML. HTML5: By giving the HTML document a doctype at the begin of the content. HTML knows HTML5 is supported. Hope this helpsšŸ‘ <!DOCTYPE HTML> <html> <head> <!-- CSS --> <style> body { background-color:red; } </style> </head> <body> <div id="boxOne"></div> <!-- JAVASCRIPT --> <script> document.getElementById("boxOne").innerHTML=("Hello World"); </script> </body> </html> Additional: https://code.sololearn.com/W0NN5U3pKCi4/?ref=app
14th Sep 2018, 1:53 AM
šŸŒ“Vincent BergeršŸŒ“
šŸŒ“Vincent BergeršŸŒ“ - avatar
0
thank
14th Sep 2018, 1:56 AM
Rishu Patel
Rishu Patel - avatar
0
You're welcome. šŸ‘ Added additional code to the post to see the output.
14th Sep 2018, 1:59 AM
šŸŒ“Vincent BergeršŸŒ“
šŸŒ“Vincent BergeršŸŒ“ - avatar