Modal Box

Layout in HTML

Welcome to Sharp Tutorials for Web Designing. Here is tutorial step by step with simple and easy to understand examples.

Introduction to Web Design

Java Script is a scripting language so it can be embedded in HTML page with the help of <script> tag.

Java Script used for client side validation in web technology like PHP , Java , Python .net applications .

External Java script files may be created with extension (.js ) . External JS file may contain only JS code while HTML page may contain both HTML and Java Script in <script> tag.

 

<html>
<title>JS introduction</title>
<head>
<script>
document.write("this is js print ");
</script>
</head>
<body>
</body>
</html>

How to write JS in an HTML page

Save above file with extension .html eg. jsintro.html. Output can be displayed in any of the browser eg google chrome , internet explorer, Firefox or safari   etc.

 document.write() print the message in the HTML page so output will be as following.

 

[codepen_embed height="265" theme_id="default" slug_hash="wvBaoQy" default_tab="html,result" user="rajputadesh"]See the Pen wvBaoQy by rajput adesh (@rajputadesh) on CodePen.[/codepen_embed]
Wordpress Social Share Plugin powered by Ultimatelysocial