Clock, HTML + CSS + JS

HTML, CSS and JS for a extended clock

idk
  1. Home
  2. Google Doc
  3. Clock, HTML + CSS + JS

Clock, HTML + CSS + JS

HTML, CSS and JS for a extended clock

idk

HTML

Clock

Today's Date.

CSS

body{

padding: 25px;

}

.title {

color: #800000;

}

JS

function showTime() {

document.getElementById('currentTime').innerHTML = new Date().toUTCString();

}

showTime();

setInterval(function () {

showTime();

}, 1000);

________________

Changing the HEX code in the CSS section (#800000) to another HEX code the color of the words ‘Today’s Date’ will change.

Hex codes:

Maroon - #800000

Blue - #0000FF

Red - #FF0000

Black - #000000

White - #FFFFFF

Yellow - #FF0000

Green - #00FF00

Orange - #FFA500

Purple - #6A0DAD

Pink - #FFC0CB

Clock, HTML + CSS + JS
Info
Tags Idk
Type Google Doc
Published 24/04/2024, 06:50:00

Resources

genshit