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 |
How to update a function in javascript?
What do you mean by enumeration?
How can an HTMLCollection be traversed?
How javascript sort function works?
How to define name function in javascript?
How and where javascript namespacing is used?
What is javascript and its advantages?
What is spread operator?
Why do we need hoisting in javascript?
What is this? Var myarray = [[[]]];
Why are callbacks used?
How do I add a javascript event handler to an html page element?