<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: ahmadullah</title>
    <description>The latest articles on Forem by ahmadullah (@ahmadullahnikzad).</description>
    <link>https://forem.com/ahmadullahnikzad</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F472248%2F64f9298d-a9b4-4dbe-a553-73a5f8eff085.jpeg</url>
      <title>Forem: ahmadullah</title>
      <link>https://forem.com/ahmadullahnikzad</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/ahmadullahnikzad"/>
    <language>en</language>
    <item>
      <title>CREATE A CAT APP WITH HTML</title>
      <dc:creator>ahmadullah</dc:creator>
      <pubDate>Sat, 31 Jul 2021 15:24:21 +0000</pubDate>
      <link>https://forem.com/ahmadullahnikzad/create-a-cat-app-with-html-32ke</link>
      <guid>https://forem.com/ahmadullahnikzad/create-a-cat-app-with-html-32ke</guid>
      <description>&lt;p&gt;We've learnt HTML5 from scratch and now it's time to create some apps using HTML.&lt;br&gt;
In this post I am going to create a cat app using HTML without any style, so it is so ugly don't be scared right now when you learn CSS language we will apply our CSS into our cat app.&lt;br&gt;
First add h1 heading element into app.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;h1&amp;gt;Cat Photo App&amp;lt;/h1&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;We have HTML semantic elements, what does it mean.&lt;br&gt;
Semantics elements are elements that they have special like: header, section, aside, main, article, footor.&lt;br&gt;
Beside semantics elements we have non-semantic elements they don't have special meanings like: div and section.&lt;/p&gt;
&lt;h3&gt;
  
  
  Let me explain semantic elements
&lt;/h3&gt;

&lt;p&gt;Header =&amp;gt; From its name everyone knows it is used at the heading of a website.&lt;br&gt;
Main =&amp;gt; We wrap our web content inside main element.&lt;br&gt;
Article =&amp;gt; We put our content like: texts, images, videos , audios,...&lt;br&gt;
Section =&amp;gt; We can create multiple sections into our website which is so common.&lt;br&gt;
Aside =&amp;gt; Is used for sidebars, I fetch a photo of semantic elements on that time you will have a basic knowledge of semantic elements.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--YbZvZr0b--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nueilht9q5hd4jjoqht2.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--YbZvZr0b--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nueilht9q5hd4jjoqht2.gif" alt="HTML Semantic elements"&gt;&lt;/a&gt;&lt;br&gt;
Footer =&amp;gt; Is used at the bottom of our website which is sticked at the bottom.&lt;/p&gt;

&lt;p&gt;Let's add the image of cat into our website then add a link to our cat photos after that create an unordered list what our cat eat, after that create a basic form which defines the type and some other attributes of our cat.&lt;br&gt;
As I said we wrap our content inside main element.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;main&amp;gt;
&amp;lt;img src="..." alt="my cat photo"&amp;gt;
&amp;lt;p&amp;gt;Click &amp;lt;a href="..." target="_blank"&amp;gt;here&amp;lt;/a&amp;gt; to view more photos of my cat&amp;lt;/p&amp;gt;
&amp;lt;h2&amp;gt;Things my cat eat daily&amp;lt;/h2&amp;gt;
&amp;lt;ul&amp;gt;
&amp;lt;li&amp;gt;Meat&amp;lt;/li&amp;gt;
&amp;lt;li&amp;gt;Bread&amp;lt;/li&amp;gt;
&amp;lt;li&amp;gt;Bean&amp;lt;/h2&amp;gt;
&amp;lt;/ul&amp;gt;
&amp;lt;form&amp;gt;
&amp;lt;p&amp;gt;Cat Type&amp;lt;/p&amp;gt;
&amp;lt;input type="radio" name="type" id="outdoor" value="outdoor"&amp;gt;
&amp;lt;label for="outdoor"&amp;gt;Outdoor&amp;lt;/label&amp;gt;
&amp;lt;input type="radio" name="type" id="indoor" value="indoor"&amp;gt;
&amp;lt;label for="indoor"&amp;gt;Indoor&amp;lt;/label&amp;gt;
&amp;lt;p&amp;gt;My Cat Attributes&amp;lt;/p&amp;gt;
&amp;lt;input type="checkbox" id="lovely" value="lovely"&amp;gt;
&amp;lt;label for="lovely"&amp;gt;Lovely&amp;lt;/label&amp;gt;
&amp;lt;input type="checkbox" id="lazy" value="lazy"&amp;gt;
&amp;lt;label for="lazy"&amp;gt;Lazy&amp;lt;/label&amp;gt;
&amp;lt;input type="checkbox" id="energetic" value="energetic"&amp;gt;
&amp;lt;label for="energetic"&amp;gt;Energetic&amp;lt;/label&amp;gt;
&amp;lt;input type="submit" value="Submit"&amp;gt;
&amp;lt;/form&amp;gt;
&amp;lt;/main&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This was all about my cat photos' app.&lt;br&gt;
Hope you enjoy the story.&lt;br&gt;
If you have any questions or suggestions let me know.&lt;br&gt;
Don't forget to like and share.&lt;/p&gt;

</description>
      <category>html</category>
      <category>webdev</category>
      <category>programming</category>
      <category>100daysofcode</category>
    </item>
    <item>
      <title>LEARN SOFTWARE DEVELOPMENT FOR $0 UPFRONT IN MICROVERSE</title>
      <dc:creator>ahmadullah</dc:creator>
      <pubDate>Fri, 30 Jul 2021 13:10:43 +0000</pubDate>
      <link>https://forem.com/ahmadullahnikzad/learn-software-development-for-0-upfront-in-microverse-2573</link>
      <guid>https://forem.com/ahmadullahnikzad/learn-software-development-for-0-upfront-in-microverse-2573</guid>
      <description>&lt;p&gt;Have you heard about Microverse Software Development Organization?&lt;br&gt;
Microverse Software Development Organization is not like other Software Development Organization or Bootcamp.&lt;br&gt;
Let me explain to you why Microverse Software Development Organization is unique among other Bootcamps.&lt;br&gt;
If you apply your name at any Bootcamps that teach Software Development first of all they ask you for upfront money.&lt;br&gt;
Upfront means paying money before you do anything.&lt;br&gt;
Bootcamps require big amount of money like $10000 or $20000 and up.&lt;br&gt;
Because of this issue everyone can't learn Software Development.&lt;br&gt;
Fortunately Microverse Software Development Organization offers you the best Services and the best method with $0 cost upfront until you get hired.&lt;br&gt;
For more information refer to&lt;br&gt;
&lt;a href="https://www.microverse.org/?grsf=gmfoi5"&gt;https://www.microverse.org/?grsf=gmfoi5&lt;/a&gt;.&lt;br&gt;
Hope you enjoy the story.&lt;br&gt;
Please don't let your time be wasted.&lt;br&gt;
Start your Software Development Career right now.&lt;br&gt;
Long live Microverse.org&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--37b-NXJM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ax88lybc4pcfibcg8b6e.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--37b-NXJM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ax88lybc4pcfibcg8b6e.png" alt="Microverse logo"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>programming</category>
    </item>
    <item>
      <title>HTML TUTORIAL FOR BEGINNERS PART 9</title>
      <dc:creator>ahmadullah</dc:creator>
      <pubDate>Thu, 29 Jul 2021 16:30:55 +0000</pubDate>
      <link>https://forem.com/ahmadullahnikzad/html-tutorial-for-beginners-part-9-2cka</link>
      <guid>https://forem.com/ahmadullahnikzad/html-tutorial-for-beginners-part-9-2cka</guid>
      <description>&lt;h2&gt;
  
  
  Table of contents
&lt;/h2&gt;

&lt;h3&gt;
  
  
  👉Audio🎶🔊
&lt;/h3&gt;

&lt;h3&gt;
  
  
  👉Video📽🎬
&lt;/h3&gt;

&lt;h3&gt;
  
  
  👉Embedding📎📌
&lt;/h3&gt;

&lt;h4&gt;
  
  
  Audio 🔊🎶
&lt;/h4&gt;

&lt;p&gt;YouTube is one of the largest and famous video sharing platform.&lt;br&gt;
Now you may wonder how to add video and audio in a website.&lt;br&gt;
It's super easy like adding images into a website.&lt;br&gt;
Look at the below Example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;audio controls loop muted&amp;gt;
&amp;lt;source src="..." type="audio/mp3" type="audio/ogg"&amp;gt;
&amp;lt;/audio&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Audio has some attributes like👇&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;controls&lt;/li&gt;
&lt;li&gt;loop&lt;/li&gt;
&lt;li&gt;muted&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Controls attribute displays play button and speaker icon and audio duration.&lt;br&gt;
Loop attribute plays audio continuously.&lt;br&gt;
Muted attribute mutes the audio by default.&lt;br&gt;
Inside audio source element comes.&lt;br&gt;
Source element has some attributes like👇&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;src&lt;/li&gt;
&lt;li&gt;type&lt;/li&gt;
&lt;li&gt;srcset &lt;/li&gt;
&lt;/ul&gt;
&lt;h4&gt;
  
  
  Video🎬📽
&lt;/h4&gt;

&lt;p&gt;Video is like audio but video has two more attributes than video like👇&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;autoplay&lt;/li&gt;
&lt;li&gt;poster&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Autoplay attribute plays video when the web page is loaded.&lt;br&gt;
Poster is an overlay at the beginning of video.&lt;br&gt;
Look at the video Examples below 👇&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;video controls muted loop autoplay poster="..."&amp;gt;
&amp;lt;source src="..." type="video/mp4" type="video/ogg"&amp;gt;
&amp;lt;/video&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Nowadays there lots of video formats like&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;mp4&lt;/li&gt;
&lt;li&gt;webm&lt;/li&gt;
&lt;li&gt;mp &lt;/li&gt;
&lt;li&gt;mp2&lt;/li&gt;
&lt;li&gt;avi&lt;/li&gt;
&lt;li&gt;mpeg&lt;/li&gt;
&lt;li&gt;mov&lt;/li&gt;
&lt;li&gt;qt&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;And many more.&lt;br&gt;
Modern browsers support variety types of videos.&lt;br&gt;
As well lots of audio formats available in today's world, modern browsers support them.&lt;/p&gt;

&lt;h4&gt;
  
  
  Embedding
&lt;/h4&gt;

&lt;p&gt;Embedding means displaying external content or posts into our website.&lt;br&gt;
In HTML we use &lt;code&gt;iframe&lt;/code&gt; and &lt;code&gt;embed&lt;/code&gt; elements.&lt;/p&gt;

&lt;h4&gt;
  
  
  An example from YouTube
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;iframe width="344" height="194" src="https://www.youtube.com/embed/R_dwUR2HbZM" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen&amp;gt;&amp;lt;/iframe&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Beside YouTube Tiktok,  Twitter,  Instagram allow us to embed their posts and contents.&lt;/p&gt;

&lt;p&gt;Hope you enjoy the story.&lt;br&gt;
Please don't forget to like and share.&lt;/p&gt;

</description>
      <category>html</category>
      <category>programming</category>
      <category>codenewbie</category>
      <category>100daysofcode</category>
    </item>
    <item>
      <title>HTML TUTORIAL FOR BEGINNERS PART 8</title>
      <dc:creator>ahmadullah</dc:creator>
      <pubDate>Wed, 28 Jul 2021 07:21:00 +0000</pubDate>
      <link>https://forem.com/ahmadullahnikzad/html-tutorial-for-beginners-part-8-3p9d</link>
      <guid>https://forem.com/ahmadullahnikzad/html-tutorial-for-beginners-part-8-3p9d</guid>
      <description>&lt;p&gt;If you have a Facebook account you have to submit your first name, lastname,email address or phone, password, date of birth, country, gender and more to Facebook to record your information in its servers or databases.&lt;br&gt;
Today you learn how to create those kinda textfields you've experienced on Facebook.&lt;br&gt;
As I mentioned earlier Facebook wants your firstname, lastname, email or phone,password, date of birth, gender, country.&lt;br&gt;
All of these are input fields that we're going to learn them.&lt;/p&gt;
&lt;h3&gt;
  
  
  Like the below image which is from Facebook signup form👇
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--e-pP2uFo--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hoe5vri9yzrmmetahax1.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--e-pP2uFo--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hoe5vri9yzrmmetahax1.jpg" alt="Facebook's sign up form"&gt;&lt;/a&gt;&lt;br&gt;
To create this of forms in HTML we use form element.&lt;br&gt;
Every other content is wrapped inside form element like: first name input field. Last name input field...&lt;br&gt;
Look at the below code 👇&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;form&amp;gt;
&amp;lt;!--Your input fields come here--&amp;gt;
&amp;lt;/form&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In HTML when we create form, it has some attributes like other elements for example:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;method&lt;/li&gt;
&lt;li&gt;action&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Method attribute takes two parameters:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;POST&lt;/li&gt;
&lt;li&gt;GET&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These parameters are very crucial and important when submitting form to a server.&lt;br&gt;
Differences between POST and GET parameters is as follow:&lt;br&gt;
GET is for getting data from form.&lt;br&gt;
POST is for sending data through a form like comment,story...&lt;br&gt;
These are some useful form attributes👇&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;action&lt;/li&gt;
&lt;li&gt;autocomplete&lt;/li&gt;
&lt;li&gt;method&lt;/li&gt;
&lt;li&gt;novalidate&lt;/li&gt;
&lt;li&gt;target&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  Now let's learn how to create a basic form in HTML:
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;form method="POST"&amp;gt;
&amp;lt;label for="firstname"&amp;gt;First Name&amp;lt;/label&amp;gt;
&amp;lt;input type="text" id="firstname" placeholder="First Name"&amp;gt;
&amp;lt;br&amp;gt;
&amp;lt;label for="lastname"&amp;gt;Lastname&amp;lt;/label&amp;gt;
&amp;lt;input type="text" id="lastname" placeholder="Lastname"&amp;gt;
&amp;lt;br&amp;gt;
&amp;lt;input type="submit" value="submit"&amp;gt;
&amp;lt;/form&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--6HgKl_-Z--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jf7firdql9f9yshoykjz.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--6HgKl_-Z--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jf7firdql9f9yshoykjz.jpg" alt="Preview"&gt;&lt;/a&gt;&lt;br&gt;
We can create email input field just by changing the type value to email and to create password field change into password and so on so.&lt;/p&gt;

&lt;h4&gt;
  
  
  Some are the useful form input fields 👇
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;text&lt;/li&gt;
&lt;li&gt;email&lt;/li&gt;
&lt;li&gt;password &lt;/li&gt;
&lt;li&gt;file&lt;/li&gt;
&lt;li&gt;submit&lt;/li&gt;
&lt;li&gt;image&lt;/li&gt;
&lt;li&gt;date&lt;/li&gt;
&lt;li&gt;local-date&lt;/li&gt;
&lt;li&gt;week&lt;/li&gt;
&lt;li&gt;color&lt;/li&gt;
&lt;li&gt;number&lt;/li&gt;
&lt;li&gt;tel&lt;/li&gt;
&lt;li&gt;reset&lt;/li&gt;
&lt;li&gt;url&lt;/li&gt;
&lt;li&gt;search&lt;/li&gt;
&lt;li&gt;radio&lt;/li&gt;
&lt;li&gt;checkbox
As well these input fields like email, password, number, url, search, tel have some attributes like below👇&lt;/li&gt;
&lt;li&gt;placeholder&lt;/li&gt;
&lt;li&gt;type&lt;/li&gt;
&lt;li&gt;name&lt;/li&gt;
&lt;li&gt;id&lt;/li&gt;
&lt;li&gt;value&lt;/li&gt;
&lt;li&gt;autocomplete&lt;/li&gt;
&lt;li&gt;spellcheck
Forms are very useful in a website and a web app.
### Look at the below Examples👇
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;  &amp;lt;form&amp;gt;
            &amp;lt;label for="username"&amp;gt;Username&amp;lt;/label&amp;gt;
            &amp;lt;input type="text" id="username" placeholder="Username"&amp;gt;
            &amp;lt;br&amp;gt;
            &amp;lt;label for="email"&amp;gt;Email&amp;lt;/label&amp;gt;
            &amp;lt;input type="email" id="email" placeholder="Email"&amp;gt;
            &amp;lt;br&amp;gt;
            &amp;lt;label for="password"&amp;gt;Password&amp;lt;/label&amp;gt;
            &amp;lt;input type="password" id="password"&amp;gt;
            &amp;lt;br&amp;gt;
            &amp;lt;h1&amp;gt;Choose your favourite subjects?&amp;lt;/h1&amp;gt;
            &amp;lt;input type="checkbox" id="math"&amp;gt;
            &amp;lt;label for="math"&amp;gt;Math&amp;lt;/label&amp;gt;
            &amp;lt;br&amp;gt;
            &amp;lt;input type="checkbox" id="biology" checked&amp;gt;
            &amp;lt;label for="biology"&amp;gt;Biology&amp;lt;/label&amp;gt;
            &amp;lt;br&amp;gt;
            &amp;lt;h1&amp;gt;Choose your gender?&amp;lt;/h1&amp;gt;
            &amp;lt;input type="radio" name="gender" id="male"&amp;gt;
            &amp;lt;label for="male"&amp;gt;Male&amp;lt;/label&amp;gt;
            &amp;lt;br&amp;gt;
            &amp;lt;input type="radio" name="gender" id="female"&amp;gt;
            &amp;lt;label for="female"&amp;gt;Femalr&amp;lt;/label&amp;gt;
            &amp;lt;br&amp;gt;,
            &amp;lt;input type="color"&amp;gt;
            &amp;lt;input type="date"&amp;gt;
            &amp;lt;input type="week"&amp;gt;
            &amp;lt;input type="number"&amp;gt;
            &amp;lt;input type="file"&amp;gt;
            &amp;lt;input type="tel"&amp;gt;
            &amp;lt;label for="languages"&amp;gt;Choose your language&amp;lt;/label&amp;gt;
            &amp;lt;select id="languages" multiple&amp;gt;
                &amp;lt;option value="English" selected&amp;gt;English&amp;lt;/option&amp;gt;
                &amp;lt;option&amp;gt;Arabic&amp;lt;/option&amp;gt;
            &amp;lt;/select&amp;gt;
            &amp;lt;/form&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--r8VCrNSQ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/w7dwyhy2c11gahgdzt4k.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--r8VCrNSQ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/w7dwyhy2c11gahgdzt4k.jpg" alt="Form Examples"&gt;&lt;/a&gt;&lt;br&gt;
I hope you enjoy the video and also share and like it&lt;/p&gt;

</description>
      <category>html</category>
      <category>programming</category>
      <category>webdev</category>
      <category>codenewbie</category>
    </item>
    <item>
      <title>HTML TUTORIAL FOR BEGINNERS PART 7</title>
      <dc:creator>ahmadullah</dc:creator>
      <pubDate>Tue, 27 Jul 2021 09:44:26 +0000</pubDate>
      <link>https://forem.com/ahmadullahnikzad/html-tutorial-for-beginners-part-7-27pn</link>
      <guid>https://forem.com/ahmadullahnikzad/html-tutorial-for-beginners-part-7-27pn</guid>
      <description>&lt;p&gt;Sometimes you wanna create list with bullet but sometimes with number, this kinda of stuff are called list elements in HTML.&lt;br&gt;
List elements are divided into two type:&lt;br&gt;
1- Ordered list&lt;br&gt;
2- Unordered list&lt;/p&gt;
&lt;h2&gt;
  
  
  Ordered list
&lt;/h2&gt;

&lt;p&gt;Is a list which its list items are numbered at the beginning of the item.&lt;br&gt;
For example you wanna list your school's subjects as the total of your subjects be clear like below👇&lt;br&gt;
1- Math&lt;br&gt;
2- Physics&lt;br&gt;
3- Geometry&lt;br&gt;
4- Computer science&lt;br&gt;
5- Probability&lt;br&gt;
6- Chemistry&lt;br&gt;
As you see the list items are numbered at the beginning of the item.&lt;br&gt;
I hope you, am clear and explained it professionally hope you understand my point.&lt;/p&gt;
&lt;h3&gt;
  
  
  Unordered list
&lt;/h3&gt;

&lt;p&gt;Is a list which its items are not numbered but they are started with bullets •, the number of items are not cleared and displayed.&lt;br&gt;
Unordered list is like below👇&lt;br&gt;
• Math&lt;br&gt;
• Physics&lt;br&gt;
• Chemistry&lt;br&gt;
• Probability&lt;br&gt;
How to create these types of lists in HTML.&lt;br&gt;
Don't be scared, it's super easy just look below👇&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;!--Ordered list--&amp;gt;
&amp;lt;ol&amp;gt;
&amp;lt;li&amp;gt;ordered list item 1&amp;lt;/li&amp;gt;
&amp;lt;/ol&amp;gt;
&amp;lt;!--Unordered list--&amp;gt;
&amp;lt;ul&amp;gt;
&amp;lt;li&amp;gt;unordered list item 1&amp;lt;/li&amp;gt;
&amp;lt;/ul&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;As you see &lt;code&gt;&amp;lt;ol&amp;gt;&lt;/code&gt; means ordered list.&lt;br&gt;
&lt;code&gt;&amp;lt;ul&amp;gt;&lt;/code&gt; implies unordered list.&lt;br&gt;
Inside ordered or unordered list we put list item which is &lt;code&gt;&amp;lt;li&amp;gt;&lt;/code&gt;.&lt;br&gt;
As much as item you can add into your list.&lt;br&gt;
We can customize unordered and ordered list using &lt;code&gt;list-type&lt;/code&gt; property.&lt;br&gt;
If you want to learn more about lists refer to mdn.org.&lt;br&gt;
Hope you enjoy the story please share and like it.&lt;/p&gt;

</description>
      <category>html</category>
      <category>100daysofcode</category>
      <category>programming</category>
      <category>codenewbie</category>
    </item>
    <item>
      <title>HTML TUTORIAL FOR BEGINNERS PART 6</title>
      <dc:creator>ahmadullah</dc:creator>
      <pubDate>Mon, 26 Jul 2021 10:46:25 +0000</pubDate>
      <link>https://forem.com/ahmadullahnikzad/html-tutorial-for-beginners-part-6-4hee</link>
      <guid>https://forem.com/ahmadullahnikzad/html-tutorial-for-beginners-part-6-4hee</guid>
      <description>&lt;p&gt;Sometimes you want to add &lt;code&gt;a&lt;/code&gt; element to your website but still don't know where it will link.&lt;br&gt;
This is also handy when you're changing the behavior of a link using JavaScript, which we'll learn later.&lt;br&gt;
For example the current value of href attribute is &lt;code&gt;https://www.freecodecamp.org&lt;/code&gt;now replace href value with &lt;code&gt;#&lt;/code&gt; symbol to create a dead link.&lt;br&gt;
This is the most common usage of &lt;code&gt;#&lt;/code&gt; that every developer use it.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;a href="#"&amp;gt;Contact us&amp;lt;/a&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you have any questions and suggestions or any problem let me know in the comments section below 👇&lt;br&gt;
Make sure you share ↗️ and like my story❤👍.&lt;/p&gt;

</description>
      <category>html</category>
      <category>webdev</category>
      <category>programming</category>
      <category>100daysofcode</category>
    </item>
    <item>
      <title>HTML TUTORIAL FOR BEGINNERS PART 5</title>
      <dc:creator>ahmadullah</dc:creator>
      <pubDate>Mon, 26 Jul 2021 04:37:24 +0000</pubDate>
      <link>https://forem.com/ahmadullahnikzad/html-tutorial-for-beginners-part-5-3mp7</link>
      <guid>https://forem.com/ahmadullahnikzad/html-tutorial-for-beginners-part-5-3mp7</guid>
      <description>&lt;p&gt;We learned how to add heading elements, paragraph element, image and anchor element, today it's time to learn how to nest them within themselves.&lt;/p&gt;

&lt;h4&gt;
  
  
  Like example below:
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;&amp;gt;...&amp;lt;&amp;gt;...&amp;lt;/&amp;gt;...&amp;lt;/&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you notice we encapsulated one element within other element, let's break it down a little bit for better understanding 👇&lt;br&gt;
For example if we want to nest paragraph element inside heading elements we could do this👇&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;h1&amp;gt;I am heading element&amp;lt;p&amp;gt;,but I am paragraph element encapsulated within heading elements&amp;lt;/p&amp;gt;&amp;lt;/h1&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The above code is the general formula or method of nesting HTML elements within each other.&lt;br&gt;
For if we want to convert an image into a link we could do this 👇&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;a href="https://www.unsplash.com" target="_blank"&amp;gt;&amp;lt;img src="https://www.unsplash.com/logo.png" alt="unsplash logo"&amp;gt;&amp;lt;/a&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you have any questions or suggestions let me know in the comment section below 🗨👇👍.&lt;br&gt;
Please like ❤ and share ↗️🏹&lt;/p&gt;

</description>
      <category>html</category>
      <category>100daysofcode</category>
      <category>webdev</category>
      <category>programming</category>
    </item>
    <item>
      <title>HTML  TUTORIAL FOR BEGINNERS PART 4</title>
      <dc:creator>ahmadullah</dc:creator>
      <pubDate>Sat, 24 Jul 2021 07:50:40 +0000</pubDate>
      <link>https://forem.com/ahmadullahnikzad/html-tutorial-for-beginners-part-4-1jbn</link>
      <guid>https://forem.com/ahmadullahnikzad/html-tutorial-for-beginners-part-4-1jbn</guid>
      <description>&lt;p&gt;a (anchor) elements can also be used to create internal links to jump to different sections within a webpage.&lt;/p&gt;

&lt;p&gt;To create an internal link, you assign a link's href attribute to a hash symbol # plus the value of the id attribute for the element that you want to internally link to, usually further down the page. You then need to add the same id attribute to the element you are linking to. An id is an attribute that uniquely describes an element.&lt;/p&gt;

&lt;p&gt;Below is an example of an internal anchor link and its target element:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;a href="#contacts-header"&amp;gt;Contacts&amp;lt;/a&amp;gt;
...
&amp;lt;h2 id="contacts-header"&amp;gt;Contacts&amp;lt;/h2&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;When users click the Contacts link, they'll be taken to the section of the webpage with the Contacts header element.&lt;/p&gt;

&lt;h3&gt;
  
  
  Demo
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://codepen.io/ahmadullah1919/pen/QWvOmVE"&gt;https://codepen.io/ahmadullah1919/pen/QWvOmVE&lt;/a&gt;&lt;/p&gt;

</description>
      <category>html</category>
      <category>webdev</category>
      <category>programming</category>
    </item>
    <item>
      <title>HTML TUTORIAL FOR BEGINNERS PART 3</title>
      <dc:creator>ahmadullah</dc:creator>
      <pubDate>Fri, 23 Jul 2021 07:29:22 +0000</pubDate>
      <link>https://forem.com/ahmadullahnikzad/link-to-external-pages-with-anchor-elements-2885</link>
      <guid>https://forem.com/ahmadullahnikzad/link-to-external-pages-with-anchor-elements-2885</guid>
      <description>&lt;p&gt;You can use &lt;code&gt;a&lt;/code&gt;(anchor) elements to link to content outside of your web page.&lt;br&gt;
&lt;code&gt;a&lt;/code&gt;elements need a destination web address called an &lt;code&gt;href&lt;/code&gt;attribute. They also need anchor text. Here's an example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;a href="https://www.freecodecamp.org"&amp;gt;this links to freecodecamp.org&amp;lt;/a&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then your browser will display the text &lt;em&gt;this links to freecodecamp.org&lt;/em&gt; as a link you can click and that link will take you to the web address &lt;em&gt;&lt;a href="https://www.freecodecamp.org"&gt;https://www.freecodecamp.org&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  Task
&lt;/h4&gt;

&lt;p&gt;Create an &lt;code&gt;a&lt;/code&gt; element that links &lt;em&gt;&lt;a href="https://www.freecatphotoapp.com"&gt;https://www.freecatphotoapp.com&lt;/a&gt;&lt;/em&gt; and has &lt;strong&gt;cat photos&lt;/strong&gt; as its anchor text.&lt;/p&gt;

&lt;h3&gt;
  
  
  Solution
&lt;/h3&gt;



&lt;p&gt;&lt;code&gt;&amp;lt;a href="https://www.freecatphotoapp.com"&amp;gt;cat photos&amp;lt;/a&amp;gt;&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

</description>
      <category>html</category>
      <category>programming</category>
      <category>webdev</category>
    </item>
    <item>
      <title>HTML TUTORIAL FOR BEGINNERS PART 2</title>
      <dc:creator>ahmadullah</dc:creator>
      <pubDate>Thu, 22 Jul 2021 14:52:26 +0000</pubDate>
      <link>https://forem.com/ahmadullahnikzad/html-tutorial-for-beginners-part-2-2a9e</link>
      <guid>https://forem.com/ahmadullahnikzad/html-tutorial-for-beginners-part-2-2a9e</guid>
      <description>&lt;p&gt;In HTML &lt;code&gt;img&lt;/code&gt; element is used to display every types of images like:jpg, png, jpeg...&lt;br&gt;
It can also display svg.&lt;br&gt;
&lt;code&gt;img&lt;/code&gt; has many attributes but the most common ones are:loading, src, srcset, height, width and alt.&lt;br&gt;
When we wanna to put image into website we have target the path or address of that image we interested in it.&lt;/p&gt;
&lt;h5&gt;
  
  
  It's implementation looks like below:
&lt;/h5&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;img src='yourimagepath/yourimagename.png'/&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Inside src attribute we can put local images path or online path.&lt;br&gt;
The second important attribute is alt attribute, you have to always include this attribute into your img element because sometimes your image path isn't correct so the text is written inside alt attribute instead displays.&lt;br&gt;
Your text should be meaningful that conveys the purpose or aim of your image to users.&lt;br&gt;
When your user has slow internet connections your images won't load properly in that case alt attribute plays crucial role.&lt;br&gt;
For example&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;img src="https://www.freecatphotoapp.com/yourcatphoto.jpg" alt="my cat photo eating food"/&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;One thing keep in mind that HTML is not case sensitive language you can write it's elements into capital case or camel case it doesn't shows any error message.&lt;br&gt;
Google chrome developers recommend us to use loading attribute to speed image loading process.&lt;/p&gt;

&lt;h5&gt;
  
  
  Looks like this
&lt;/h5&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;img src="https://www.freecatphotoapp.com/yourcatphoto" loading="lazy-loading"/&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;We can control the width and height of images using width and height attributes.&lt;/p&gt;

&lt;h5&gt;
  
  
  Look at this:
&lt;/h5&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;img src="https://www.freecatphotoapp.com/yourcatphoto" width=200 height=150/&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I hope you enjoy the tutorial.&lt;br&gt;
If you have any suggestions or criticism please let me know.&lt;br&gt;
Please share let others to know&lt;/p&gt;

</description>
      <category>html</category>
      <category>100daysofcode</category>
      <category>webdev</category>
    </item>
    <item>
      <title>HTML TUTORIAL FOR BEGINNERS PART 1</title>
      <dc:creator>ahmadullah</dc:creator>
      <pubDate>Thu, 22 Jul 2021 05:26:46 +0000</pubDate>
      <link>https://forem.com/ahmadullahnikzad/html-tutorial-for-beginners-part-1-1052</link>
      <guid>https://forem.com/ahmadullahnikzad/html-tutorial-for-beginners-part-1-1052</guid>
      <description>&lt;p&gt;HTML is a markup language that uses a special syntax or notation to describe the structure of a web page to the browser. HTML elements usually have opening and closing tags that surround and give meaning to content but some HTML elements don't have closings tags like&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;img src='image path'/&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is opening tag&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is closing tag&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;/&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And self-closing tag is&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;/&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;HTML is the building block of a website like skeleton in our body and brick or stone in a house.&lt;br&gt;
Someone says that HTML is a programming language but it's a misconception.&lt;br&gt;
The meaning of programming language is to add logic into your program or software how it to work.&lt;br&gt;
HTML has 6 types of heading elements from h1 to h6.&lt;br&gt;
The web browser displays h1 as the biggest heading and h6 as the smallest heading.&lt;br&gt;
Every HTML has special meaning as I described above.&lt;/p&gt;
&lt;h1&gt;
  
  
  Examples
&lt;/h1&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;h1&amp;gt;hello world heading 1&amp;lt;/h1&amp;gt;
&amp;lt;h2&amp;gt;hello world heading 2&amp;lt;/h2&amp;gt;
&amp;lt;h3&amp;gt;hello world heading 3&amp;lt;/h3&amp;gt;
&amp;lt;h4&amp;gt;hello world heading 4&amp;lt;/h4&amp;gt;
&amp;lt;h5&amp;gt;hello world heading 5&amp;lt;/h5&amp;gt;
&amp;lt;h6&amp;gt;hello world heading 6&amp;lt;/h6&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;HTML has paragraph element as well looks like this one&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;p&amp;gt;hello paragraph&amp;lt;/p&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Beside these elements HTML many more elements but not useful like these ones:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;b&amp;gt;&amp;lt;/b&amp;gt;
&amp;lt;pre&amp;gt;&amp;lt;/pre&amp;gt;
&amp;lt;code&amp;gt;&amp;lt;/code&amp;gt;
&amp;lt;abbr&amp;gt;&amp;lt;/abbr&amp;gt;
...
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Some of the screenshots I've taken from #freecodecamp website wanna to include here.&lt;/p&gt;

</description>
      <category>html</category>
      <category>100daysofcode</category>
      <category>webdev</category>
    </item>
    <item>
      <title>How to create digital clock in Vanilla JS</title>
      <dc:creator>ahmadullah</dc:creator>
      <pubDate>Sat, 13 Feb 2021 11:27:47 +0000</pubDate>
      <link>https://forem.com/ahmadullahnikzad/how-to-create-digital-clock-in-vanilla-js-2172</link>
      <guid>https://forem.com/ahmadullahnikzad/how-to-create-digital-clock-in-vanilla-js-2172</guid>
      <description>&lt;p&gt;I can create a digital clock in two ways the first one is using setInterval method.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--wgarOUV4--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/incoxtebclulsakmo8di.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--wgarOUV4--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/incoxtebclulsakmo8di.gif" alt="digitalclock"&gt;&lt;/a&gt;&lt;br&gt;
And the second way is using setTimeout function but a little bit confusing and challenging.&lt;/p&gt;

&lt;h2&gt;
  
  
  Creating digital clock using setInterval
&lt;/h2&gt;

&lt;h3&gt;
  
  
  HTML Part
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;h1 class='time'&amp;gt;&amp;lt;/h1&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  CSS Part
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;body {
display:flex;
align-items:center;
justify-content:center;
height:100vh;
background-color:#333;
}
h1 {
font-size:2rem;
color:#fff;
}

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  JavaScript Part
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;setInterval(showTime,1000);
function showTime(){
let date=new Date();
let time=date.toLocaleTimeString();
document.querySelector('.time').innerHTML=time;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;1000ms=1second&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Creating a digital clock using setTimeout
&lt;/h2&gt;

&lt;h3&gt;
  
  
  HTML Part
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;h1 class='clock'&amp;gt;&amp;lt;/h1&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  CSS Part
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;body {
font-family:'Poppins',sans-serif;
height:100vh;
background-color:#333;
display:flex;
justify-content:center;
align-items:center;
}
h1 {
font-size:2rem;
color:#fff;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  JavaScript Part
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;let clock=document.querySelector('.clock');
function showTime(){
let date=new Date();
let h=date.getHours();
let m=date.getMiuntes();
let s=date.getSeconds();
let session='AM';
if(h===0){
h=12;
}
if(h&amp;gt;12){
h=h-12;
session='PM';
}
h=(h&amp;gt;10)?'0'+h:h;
m=(m&amp;gt;10)?'0'+m:m;
s=(s&amp;gt;10)?'0'+s:s;
let time=`${h} : ${m} : ${s} ${session}`;
clock.textContent=time;
setTimeout(showTime,1000);
}
showTime();
clock.addEventListener('load',showTime);
![chrome-capture](https://dev-to-uploads.s3.amazonaws.com/i/6lgcraigdjbmtdcen349.gif)

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
  </channel>
</rss>
