+ 5

Lessons with HTML and JS or CSS

If u want to submit a lesson with HTML and JS how can you show Code examples (try it yourself ) with two files?

15th Jul 2018, 1:58 PM
Oma Falk
Oma Falk - avatar
4 Respostas
+ 8
✔✔ <!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> <p>test</p> </body> <script> alert("test") </script> </html> ✔ like this , in same file (document)
15th Jul 2018, 2:06 PM
Sudarshan Rai
Sudarshan Rai - avatar
+ 7
Shudarshan Rai 👑 yes that does it. One should apply KISS then.
15th Jul 2018, 2:08 PM
Oma Falk
Oma Falk - avatar
+ 3
you should write inside a <script> tag.
17th Jul 2018, 2:56 AM
Tarika
Tarika - avatar
+ 1
hmm... Amethyst Animion said that sololearn who add the second files example: We only type: .blur{ background-color:black; } and sololearn will add the <div class=blur></div>
16th Jul 2018, 8:01 AM
Jingga Sona
Jingga Sona - avatar