Typefully

How To Use JavaScript In HTML? - 1

Avatar

Share

 • 

3 years ago

 • 

View on X

🔷 How To Use JavaScript In HTML? - 1 A Thread🧵 👇
📌 HTML JavaScript → JavaScript makes HTML pages more dynamic and interactive. → There are two ways to add JavaScript in HTML document. 1️⃣ Internal JavaScript • By using <script> tag.
2️⃣ External JavaScript
📌 <script> Tag → The HTML <script> tag is used to define a client-side script (JavaScript).
→ This function write "Hello Javascript!" in element of Id 'demo'.
📌 <noscript> Tag →The HTML <noscript> tag defines an alternate content to be displayed to users that have disabled scripts in their browser or have a browser that doesn't support scripts.
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!