Download presentation
Presentation is loading. Please wait.
Published byLora Lawrence Modified over 9 years ago
1
HTML JAVASCRIPT
2
CONTENTS Javascript Example NOSCRIPT Tag Advantages Summary Exercise
3
JAVASCRIPT 5 The tag is used to define a client-side script, such as a JavaScript. The element either contains scripting statements or it points to an external script file through the src attribute. Common uses for JavaScript are image manipulation, form validation, and dynamic changes of content. The script below writes Hello World! to the HTML output:
4
EXAMPLE Example document.write("Hello World!") Output Hello World!
5
NOSCRIPT TAG The tag is used to provide an alternate content for users that have disabled scripts in their browser or have a browser that doesn’t support client-side scripting. The element can contain all the elements that you can find inside the element of a normal HTML page. The content inside the element will only be displayed if scripts are not supported, or are disabled in the user’s browser:
6
NOSCRIPT TAG Example document.write("Hello World!") Sorry, your browser does not support JavaScript! Output Hello World! A browser without support for JavaScript will show the text in the noscript element.
7
ADVANTAGE JavaScript can write directly into the HTML output stream. JavaScript can react to events. JavaScript can manipulate HTML styles
8
SUMMARY JavaScript can write directly into the HTML output stream. JavaScript can react to events.
9
EXERCISE What is JavaScript? What is the use of Javascript?
10
THANK YOU
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.