Digital Clock Using HTML, CSS, & JavaScript

Sdílet
Vložit
  • čas přidán 22. 09. 2023
  • Welcome to this step-by-step tutorial on building a Digital Clock using HTML, CSS, and JavaScript. Whether you're a coding enthusiast or a beginner, this video will guide you through the process of creating a fully functional and stylish digital clock for your website or personal projects.
    In this tutorial, we'll cover the following topics:
    _ Setting up the basic HTML structure for the clock
    _ Styling the clock with CSS to make it visually appealing
    _ Using JavaScript to update the time in real-time
    _ Adding functionality for a 12-hour format clock
    No prior coding experience is necessary, as we'll explain each step clearly and provide code examples to help you understand. By the end of this video, you'll have a custom digital clock that you can customize and integrate into your own web projects.
    Feel free to follow along, pause, or rewind as needed. If you find this tutorial helpful, please give it a thumbs up, subscribe for more coding tutorials, and hit the notification bell to stay updated with our latest content.
    Let's get started and build a stunning Digital Clock with HTML, CSS, and JavaScript together! ⏰🌟
    #HTML #CSS #JavaScript #DigitalClock #WebDevelopment #Tutorial #Coding #ClockDesign #BeginnerFriendly
    Follow us on:
    Instagram: / blak_deer
    Tiktok: / blak.deer
    Source code: shorturl.at/JNSW1
    Sound effect from Pixabay.

Komentáře • 41

  • @khanubaid4546
    @khanubaid4546 Před 9 měsíci +2

    Great

  • @samha5243
    @samha5243 Před 3 měsíci

    Vielen Dank!

  • @er.abhishekgupta
    @er.abhishekgupta Před 7 měsíci +1

    Good effort!

  • @relaxa4896
    @relaxa4896 Před 3 měsíci

    Danke!

  • @weikra2023
    @weikra2023 Před 9 měsíci +5

    Why do you use var not let?

  • @rickyp9803
    @rickyp9803 Před 8 měsíci +3

    Thank you for separating the code and putting the CSS and JS in their own files.
    What does the asterisk for the first set of *{ } mean and why declare those two attributes that way?
    Learning development and doing your quick projects, but I've never seen the margin and the padding declared that way, always I've seen them in the body{ }
    Muchas gracias...

    • @learning-axis
      @learning-axis  Před 8 měsíci +1

      The asterisk (*), the CSS universal selector, selects all items in an HTML file.
      If we declare anything in this it is applied to all elements of HTML.

  • @destinrr5318
    @destinrr5318 Před 9 měsíci +1

    Hello, is it worth learning html,CSS,js these days ? Very many people advise me against it because there is wordpress or webflow which is much faster, what do you think ?

    • @learning-axis
      @learning-axis  Před 9 měsíci +8

      These platforms have limited options, with custom coding you can do whatever you want.

  • @dilavejahmad4783
    @dilavejahmad4783 Před měsícem +1

    i have written same code in visual studio but correct time and second not run. how could i?

  • @chenn23
    @chenn23 Před 8 měsíci +1

    where i can learn the code like you? can i find it at dictionary html?

    • @learning-axis
      @learning-axis  Před 8 měsíci +3

      first you have to learn basics of HTML, CSS and JavaScript

  • @cu_psy
    @cu_psy Před 8 měsíci +1

    How do you get the actual time, I don't understand how do you get it

    • @learning-axis
      @learning-axis  Před 8 měsíci +1

      const d = new Date();
      let time = d.getTime();
      use these commands to get time and date

  • @Aryanpa7
    @Aryanpa7 Před 7 měsíci +1

    Pls link in description to copy it

  • @MumbaiKaCoder
    @MumbaiKaCoder Před 6 měsíci

    ASMR Coding - Creating Real Switch Button Animation using HTML and CSS czcams.com/video/e5q3hzFJmgU/video.html

  • @user-kn2eo4ky2w
    @user-kn2eo4ky2w Před 22 dny +1

    how it will show am or pm?

  • @SalmanKhan-zj5ut
    @SalmanKhan-zj5ut Před 9 měsíci +1

    Mujhe coding sikhna hai sir plz

    • @learning-axis
      @learning-axis  Před 9 měsíci +1

      videos follow kro IA seelh jao gy ap
      thank you

  • @drzion247
    @drzion247 Před 6 měsíci

    mine did not work. the clock was at the same date on the HTML...
    pls I'm just a beginner sir help

    • @raviashray1431
      @raviashray1431 Před měsícem +2

      did you try linking html to js file?

    • @drzion247
      @drzion247 Před měsícem

      @@raviashray1431 yes i did.

  • @santanuroy466
    @santanuroy466 Před 3 měsíci +1

    It's not working😢

  • @khanubaid4546
    @khanubaid4546 Před 9 měsíci

    I Know Little bit about Coding but I Couldn't Get The Same Results While Writing The Whole code from the clip 😰

  • @Search-Sensei
    @Search-Sensei Před 9 měsíci

    Are you selling your CZcams channel I want to buy

  • @danielmatei4868
    @danielmatei4868 Před 8 měsíci

    Hello! What these are practically doing? h = h

    • @YashiroAnubis-ht9mz
      @YashiroAnubis-ht9mz Před 7 měsíci +2

      I think the main purpose is to beautify the display. These code will add a '0' adhead the hour or minute or second when they are less than 10. So they will be shown as '0x', and then they will display in the same width.
      The question mark is a conditional operator. It will return the value on the left of the ":" if the expression on the left of "?" is true, or return the value on the right of the ":" if the expression on the left of "?" is false.
      I am a novice and my English is not very good. I hope you can understand what I'm talking about.

    • @Marquss1
      @Marquss1 Před 2 měsíci +1

      Adding a "0" if the hours minutes seconds < 10 else does nothing

  • @IreritemDavidOfere
    @IreritemDavidOfere Před 8 měsíci +1

    No voice commentary, I'm lost.

    • @rickyp9803
      @rickyp9803 Před 8 měsíci

      If haven't yet, finish an HTML tutorial first, once done with that, CSS and JavaScript and you won't need any voice commentary, it will get much, much easier and is best for this "tutorial" not to have a voice as it moves you to research.
      Be well.

  • @abd0190
    @abd0190 Před 5 měsíci

    bro i need your help please
    can i have your e mail to send you about that i wanna make the ONLINE SHOES STORE complete codes and i dont have time for this project

  • @Royal.com777
    @Royal.com777 Před 3 měsíci +1

    Hello dada
    Mobile number 🙏🏻🙏🏻🙏🏻🙏🏻

  • @santanuroy466
    @santanuroy466 Před 3 měsíci

    It's not working😢