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 array constructor in javascript?
Which built-in method returns the characters in a string beginning at the specified location?
How do you change the style/class on any element using javascript?
Which company developed JavaScript?
In javascript what is an argument object?
Why does the browser display the slow script warning?
What are the data types available in javascript? Explain
what is difference between client side scripting and server side scripting?
How does javascript work?
What are decodeuri() and encodeuri() functions in javascript?
Does spread operator deep copy?
What is the purpose of local variables?