Tutorials » Javascript tutorials »

More HTML formats in the SCRIPT


Simple program in a more formatted way.


Let us take one more example so that inserting HTML code in the text would be more easy.
We can insert all the formats that HTML supports in JavaScript.


<html>

<body>

<script text =”javascript">

document.write("<h1> <p align = 'center' ><i>Javascript Tutorials

</i></p></h1>");

document.write("<p align = 'center'><font color = 'red'> Welcome to

DotnetSpider Tutorials!</font></p>");

</script>

</body>

</html>



Output in the browser










Next Chapter: Javacript popup objects!
Previous Chapter: Formatted text
More Chapters: Javascript Tutorials
More Tutorials: Tutorial Index



Top Contributors
TodayLast 7 Daysmore...

Awards & Gifts

Online Members

More...
 
Copyright © SpiderWorks Technologies Pvt Ltd., Kochi, India