Tools, FAQ, Tutorials:
HTML 'script' Tag/Element as Inline Element
What Is an HTML "script" Tag/Element?
✍: FYIcenter.com
A "script" element is both an inline element and a block element
that you can use to specify a script code to be executed by browsers.
Here are basic rules about "script" elements:
Below is a good tutorial example of using "script" elements:
<?xml version="1.0" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title>SCRIPT Elements</title> </head> <body> <p>Let's ask the browser to calculate: <br/> sqrt(2.0) = <script type="text/javascript"> document.write(Math.sqrt(2.0)) </script></p> </body> </html>
If you save the above document as inline_script.html, and view it with
Internet Explorer, you will see that the browser calculates sqrt(2.0) correctly
and displays the result as shown below:
Â
⇒HTML In-line Elements and Tags
⇒⇒HTML Tutorials
2017-07-21, 1128👍, 0💬
Popular Posts:
How to add request URL Template Parameters to my Azure API operation 2017 version to make it more us...
How to read RSS validation errors at w3.org? If your RSS feed has errors, the RSS validator at w3.or...
What is test testing area for? The testing area is provided to allow visitors to post testing commen...
How to use the Atom Online Validator at w3.org? w3.org feed validation service is provided at http:/...
What properties and functions are supported on http.client.HTTPResponse objects? If you get an http....