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

How to use Visual Studio Code as mergetool and difftool in Git

Say Hello to KlayFi’s LaunchPad Platform, ‘KlayStarter’

Creating an unbeatable AI in a game of Tic-Tac-Toe

Waterfall vs Agile

“error: Couldn’t load Info dictionary for containing app: Info.plist” Error handling

How to Fix Minecraft Internal Exception Java.io.ioexception Error

What is a CDN, I want to know

Kubernetes Intro

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

How to append values to Javascript Map object

How to never play random openings in Chess: Chess Openings

“We came loaded”— A glance at the Yache nation of Cross River state.

Who pays DNS providers ?