My desired Output is:-
Date: "current date"
My current code for this is:-
<p align="right">Date: </p>
<p id="demo" align="right">
<script>
var d = new Date();
document.getElementById("demo").innerHTML = d.toDateString();
</script>
</p>
which is giving me the output as:
Date:
"current date"
So how can I avoid new line so that I can get both the element on same line?