I am new to HTML, CSS, and JavaScript and I have a question regarding how they work together.
I can use JavaScript to display objects on the page, but I'm unsure how to move them around like other elements. Is CSS the solution for this?
Any advice would be appreciated.
var today = new Date();
var dd = today.getDate();
var mm = today.getMonth()+1; //January is 0!
var yyyy = today.getFullYear();
if(dd<10) {
dd='0'+dd
}
if(mm<10) {
mm='0'+mm
}
today = mm+'/'+dd+'/'+yyyy;
document.write(today);
The date output appears in the top right corner by default, but I want it to be positioned at the bottom right of the page.
This code snippet was found on this website as part of a training exercise, so you may recognize it.
Thank you.