HTML and CSS Reference
way that the <style> tag is use to add a style sheet to a page. The contents of the
For the best results across all browsers, you should include the type attribute in the script
attribute, but for earlier HTML versions of HTML it was required.
<script> tag), you should also follow a few other conventions:
HTML standards prior to HTML5 required that the <script> tag be placed
between the <head> and </head> tags at the start of your document, not inside the
<body> tag. Most of the time, putting your <script> tags inside the <head> tag is
the right thing to do, but there are some cases where it makes sense to place them
elsewhere, which I'll discuss later.
Unlike HTML, which uses the <!— comment tag —> , comments inside
that starts with these characters will be treated as a comment and ignored.
Taking these three points into consideration, here's how the <script> tag is normally
<title> Test script </title>
Your Web contentgoes here
Search WWH ::