Hello tribe, how are you?🤗
Remember last week when we talked about how to embed CSS in HTML ? 🤔 well in this post we will learn how to do it but with JS! yes the last pillar of web development has been revealed! hahaha. Alright let's get started!
There are two ways through external files or embedding it directly in the document. FOR REAL 😱
<head> <script> ..... code ...... </script>
The second way is through a linked file that is placed in the body like this:
<body> <!--at the end of the body--> <script src="/myfile.js"></script> </body>
🤩Bonus! the NOSCRIPT tag:🤩
The noscript tag is used to display a text for all those browsers that have js disabled or don't support it at all.
<noscript>active js please!</noscript>
Well tribe I think that's all for today I'll get to work to bring you more interesting stuff in the next post! remember to always be the best version of you bye bye bye!🥴🥴
Top comments (0)