Skip to main content

Digital Clock HTML Script

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Digital Clock</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <h2>Digital Clock</h2>
    <div class="clock">
    <div>
        <span id="hour">00</span>
        <span class="text">Hours</span>
    </div>
    <div>
        <span id="minutes">00</span>
        <span class="text">minutes</span>
    </div>
    <div>
        <span id="seconds">00</span>
        <span class="text">seconds</span>
    </div>
    <div>
        <span id="ampm">PM</span>
    </div>
        
    </div>
    <script src="index.js"></script>
</body>
</html>





Digital Clock

Digital Clock

00 Hours
00 minutes
00 seconds
PM

Comments

Popular posts from this blog

JAVA FULL NOTES

  JAVA Written By G. Ravi Kumar Sarma where we use java Java is a versatile programming language that can be used in a variety of different contexts and for a wide range of applications. Some common areas where Java is used include: Web development: Java is a popular choice for developing web applications, both on the server side (using technologies such as Java Servlets and JavaServer Faces) and on the client side (using technologies such as Java applets and JavaFX). Enterprise applications: Java is widely used for developing enterprise-level applications, such as business systems and e-commerce platforms. The Java Enterprise Edition (Java EE) provides a set of libraries and components for building such applications. Mobile development: Java is the primary language used for developing Android mobile applications. The Java Micro Edition (Java ME) can be used for developing applications for other mobile platforms as well. Embedded systems: Java can be used for developing application...

Favicon

       A favicon (short for "favorites icon") is a small icon that appears in the browser's address bar or next to the website's name in a list of bookmarks. They can also be displayed in the browser's tab. It is used to help users quickly identify a website or webpage. They are typically 16x16 pixels in size and are saved in the .ico file format. They can be added to a website by linking to the favicon file in the HTML code or by placing the file in the website's root directory. TELUGU      ఫావికాన్ ("ఫేవరెట్స్ ఐకాన్") అనేది బ్రౌజర్ యొక్క చిరునామా పట్టీలో లేదా బుక్ మార్క్ ల జాబితాలో వెబ్ సైట్ పేరు పక్కన కనిపించే ఒక చిన్న చిహ్నం. వాటిని బ్రౌజర్ ట్యాబ్ లో కూడా డిస్ ప్లే చేయవచ్చు. వెబ్ సైట్ లేదా వెబ్ పేజీని వేగంగా గుర్తించడంలో వినియోగదారులకు సహాయపడటానికి ఇది ఉపయోగించబడుతుంది. అవి సాధారణంగా 16x16 పిక్సల్స్ సైజులో ఉంటాయి మరియు .ico ఫైల్ ఫార్మెట్ లో సేవ్ చేయబడతాయి. హెచ్ టిఎమ్ ఎల్ కోడ్ లోని ఫావికాన్ ఫైల్ కు లింక్ చేయడం ద్వారా లేదా వెబ్ సైట్ యొక్క రూట్ డైరె...

Digital Clock JAVA script

const hourEl = document.getElementById("hour") const minuteEl = document.getElementById("minutes") const secondEl = document.getElementById("seconds") const ampmEl = document.getElementById("ampm") function updateClock(){     let h = new Date().getHours()     let m = new Date().getMinutes()     let s = new Date().getSeconds()     let ampm = "AMPM"     if(h > 12){         h = h- 12         ampm = "PM"     }     h = h<10 ? "0" + h : h;     m = m<10 ? "0" + m : m;     s = s<10 ? "0" + s : s;     hourEl.innerText = h;     minuteEl.innerText = m;     secondEl.innerText = s;     ampmEl, (innerText = ampm);     setTimeout(()=> {         updateClock()     }, 1000) } updateClock();