Typefully

How To Use JavaScript In HTML? - 2

Avatar

Share

 • 

4 years ago

 • 

View on X

🔷 How To Use JavaScript In HTML? - 2 A Thread🧵 👇
Before continuing to this thread, here's part 1 of this thread 👇 twitter.com/MrunayU/status/1547845681196412931?s=20&t=fD_qqjsKzP3aYQ84RD-XMQ
📌 What JavaScript can do? → Common uses of JavaScript are image manipulation, form validation, and dynamic changes of content. 1️⃣ JavaScript can change content
2️⃣ JavaScript can change style
3️⃣ JavaScript can change attributes
📌 Script Tag Attributes → src • Specifies the URL of an external script file. → type • Specifies the media type of the script. → defer • Specifies that the script is executed when the page has finished parsing (only for external scripts).
→ async • Specifies that the script is executed asynchronously (only for external scripts). → crossorigin • Sets the mode of the request to an HTTP CORS Request.
→ integrity • Allows a browser to check the fetched script to ensure that the code is never loaded if the source has been manipulated.
Thanks for reading this thread ❤️ If you like it , make sure you: 🔷 Like the tweet 🔷 Retweet the first tweet ⚡ For more content , follow: @MrunayU
Avatar

Mrunay Uttarwar

@MrunayU

🌐 Front End Dev 💻 Transitioning into Web3 🚀 Content Creator 📝 Always learning and sharing my journey 💻 Let's connect and geek out!