What’s the point of <script> elements in an HTML doc?

$ (document).ready(function( ){
$(“#div2”).find(“*”).css({“color”:”red”, “border”:“5px solid red”});
});
jQuery example with <script> element

The <script> Element

When To Use <script>

<script src=”javascript.js”></script>
<script>
alert(“Hello World!”);
</script>

Conclusion

Other Sources

--

--

--

Certified Sommelier and Flatiron School Software Engineering Grad

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Sell online to clients worldwide with a forex API

What Is Text To Speech Software Used For?

Object-Oriented Programming (OOP) in Python

Deploying ASP.NET Core App using Docker

Road TO Dev — Let’s animate!

A Complete Guide to DCO for Open Source Developers

Setting up a CI/CD Pipeline on GCP with Terraform

Launching an application on AWS Cloud using EC2,EFS,S3 and cloudFront

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Jonelle Noelani Yacapin

Jonelle Noelani Yacapin

Certified Sommelier and Flatiron School Software Engineering Grad

More from Medium

Optimization of RGB DEM tiles for dynamic hill shading with Mapbox GL or MapLibre GL

What Is Node.js and Why You Should Use It?

CS373 Spring 2022: Daniel Fernandez