How to include the HTML tag inside the javascript tags?
Answers were Sorted based on User's Feedback
Answer / r.deepe
by using document.writeln() function we can use HTML tags
| Is This Answer Correct ? | 5 Yes | 1 No |
<script type="text/javascript">
document.write("<h1>Hi</h1>");
</script>
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / kapil
write html tag within double courts to include html in java script
| Is This Answer Correct ? | 4 Yes | 9 No |
What is event target in javascript?
Is Javascript a Functional Programming Language?
Why is javascript used for web pages?
How to hide javascript code from old browsers that dont run it?
Explain the process of document loading.
What is data types in javascript?
What boolean operators does JavaScript support?
5 Answers Aptech, HCL, Satyam,
List few difference between primitive and non primitive javascript data types?
Which built-in method returns the length of the string?
How to create 3-dimensional Array in Javascript?
What is the data type of variables of in javascript?
What is the role of javascript in a web page?