O'Reilly logo

HTML5 and CSS3: Visual QuickStart Guide, Seventh Edition by Bruce Hyslop, Elizabeth Castro

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Adding an Embedded Script

An embedded script exists in your HTML document, much in the way an embedded style sheet does. An embedded script is contained in a script element Image. Embedding a script is not the preferred method (see “Loading an External Script”), but sometimes it’s necessary.

Image An embedded script doesn’t have a src attribute. Instead, the code is in the page. If you embed a script, do so directly before the </body> end tag whenever possible. It’s also possible to embed a script in the head , but it’s less desirable from a performance standpoint. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required