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 the context in javascript?
Which built-in method reverses the order of the elements of an array?
What are the requirements of web application using javascript?
What is the difference between arrow function and normal function?
What does javascript do?
Explain the working of timers in JavaScript? Also elucidate the drawbacks of using the timer, if any?
Hai what is the difference between java and javascript
Why is javascript good for websites?
Why is my javascript function not defined?
What will be the output of the following code? //nfe (named function expression) var Foo = Function Bar() { return 7; }; typeof Bar();
Can javascript code be broken in different lines?
Taking a developer's perspective, do you think that that javascript is easy to learn and use?