How to Create a Website by HTML, CSS, & JavaScript.

 HTML, CSS, JavaScript Programming

So Hello Viewers, Its your Friend 'Themidom' here. How are you all? Hope you are well & good.

So today in this Blog I am going to share with you a advance trick regarding website making via HTML,CSS & JavaScript. So basically we thought that coding or programming is hard enough but its our false thinking, This Blog will be the proof that Coding or Programming is not that tough that much we think. In this blog I am going to tell you How to make a website via coding within 5 minutes and if you read this article fully then I will take guarantee that 'You can make a website within 5 minutes. So Viewers, that much intro about this blog is enough, Now lets gets started today's blog titled " How to Create a Website by HTML, CSS, & JavaScript".



First of all you need to Download Visual Studio Code for running the program, You can Download VS Code by searching on Google and then complete the installation process of Visual Studio Code. After completing the downloading process, open Visual Studio Code or VS Code and make a folder named " index.html" as we are starting with HTML coding


After Creating the HTML folder 📂 in Visual Studio Code Paste the above code shown in the image by clicking the Download button which is given bellow as this code is the primary code or boilerplate of HTML.

Primary Code of HTML -

 <!DOCTYPE html>  
 <html lang="en">  
   <head>  
     <meta charset="UTF-8" />  
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />  
     <link href="https://unpkg.com/tailwindcss@^2/dist/tailwind.min.css" rel="stylesheet">  
     <title>Title</title>  
   </head>  
   <body>  
   </body>  
 </html>  
Download

Once when you have paste the above code, after that next step is entering the Site Header or Page Header Code. Me as a guide of your, having the duty to help you out for that I will give you all the code which is need to build a responsive website. So Coming to the point 

Step1:- Header Code.

Step2:- Home Page & your required Code.

Step 3:- Footer Code.

Coming to the Explanation --

(Note:- In Visual Studio Code you have to download a extension named ' Live Server' which you'll find in VS Code itself.)

Step1:- Header Code--- You have already paste the primary code or boilerplate of HTML, the last 2 closer tags is </body> </html>. Before body tag you have to paste your header code, shown in the following- 



After entering the Header code if you want to see your Header then press right click on your mouse and select open in live server, Header will look like 

Download Header Code-- 

 <header class="text-gray-600 body-font">  
  <div class="container mx-auto flex flex-wrap p-5 flex-col md:flex-row items-center">  
   <a class="flex title-font font-medium items-center text-gray-900 mb-4 md:mb-0">  
    <svg xmlns="http://www.w3.org/2000/svg" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" class="w-10 h-10 text-white p-2 bg-indigo-500 rounded-full" viewBox="0 0 24 24">  
     <path d="M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5"></path>  
    </svg>  
    <span class="ml-3 text-xl">Tailblocks</span>  
   </a>  
   <nav class="md:mr-auto md:ml-4 md:py-1 md:pl-4 md:border-l md:border-gray-400     flex flex-wrap items-center text-base justify-center">  
    <a class="mr-5 hover:text-gray-900">First Link</a>  
    <a class="mr-5 hover:text-gray-900">Second Link</a>  
    <a class="mr-5 hover:text-gray-900">Third Link</a>  
    <a class="mr-5 hover:text-gray-900">Fourth Link</a>  
   </nav>  
   <button class="inline-flex items-center bg-gray-100 border-0 py-1 px-3 focus:outline-none hover:bg-gray-200 rounded text-base mt-4 md:mt-0">Button  
    <svg fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" class="w-4 h-4 ml-1" viewBox="0 0 24 24">  
     <path d="M5 12h14M12 5l7 7-7 7"></path>  
    </svg>  
   </button>  
  </div>  
 </header>  
 --------------------------Header Code (1) finished--------------------------------  
 Header Code (2)  Mega menu in right side  
 --------------------------------------- Start ----------------------------------------------------  
 <header class="text-gray-600 body-font">  
  <div class="container mx-auto flex flex-wrap p-5 flex-col md:flex-row items-center">  
   <a class="flex title-font font-medium items-center text-gray-900 mb-4 md:mb-0">  
    <svg xmlns="http://www.w3.org/2000/svg" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" class="w-10 h-10 text-white p-2 bg-indigo-500 rounded-full" viewBox="0 0 24 24">  
     <path d="M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5"></path>  
    </svg>  
    <span class="ml-3 text-xl">Tailblocks</span>  
   </a>  
   <nav class="md:ml-auto flex flex-wrap items-center text-base justify-center">  
    <a class="mr-5 hover:text-gray-900">First Link</a>  
    <a class="mr-5 hover:text-gray-900">Second Link</a>  
    <a class="mr-5 hover:text-gray-900">Third Link</a>  
    <a class="mr-5 hover:text-gray-900">Fourth Link</a>  
   </nav>  
   <button class="inline-flex items-center bg-gray-100 border-0 py-1 px-3 focus:outline-none hover:bg-gray-200 rounded text-base mt-4 md:mt-0">Button  
    <svg fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" class="w-4 h-4 ml-1" viewBox="0 0 24 24">  
     <path d="M5 12h14M12 5l7 7-7 7"></path>  
    </svg>  
   </button>  
  </div>  
 </header>  
Download


The Header code is given bellow. Download it and paste it in VS Code above </body> tag.


Step2:- Home Page & your required Code:- Next Step is placing the home page, Well home page place an important role on our website, if home page was not attractive then viewers will definitely not come in our website, for that I shared with you you two attractive and  responsive Header templates, So paste any One on your choice.

Page will look like --



As per your requirement you can changes in text, image & logo.

Download Code of Home Page-

 <section class="text-gray-600 body-font">  
  <div class="container mx-auto flex px-5 py-24 md:flex-row flex-col items-center">  
   <div class="lg:flex-grow md:w-1/2 lg:pr-24 md:pr-16 flex flex-col md:items-start md:text-left mb-16 md:mb-0 items-center text-center">  
    <h1 class="title-font sm:text-4xl text-3xl mb-4 font-medium text-gray-900">Before they sold out  
     <br class="hidden lg:inline-block">readymade gluten  
    </h1>  
    <p class="mb-8 leading-relaxed">Copper mug try-hard pitchfork pour-over freegan heirloom neutra air plant cold-pressed tacos poke beard tote bag. Heirloom echo park mlkshk tote bag selvage hot chicken authentic tumeric truffaut hexagon try-hard chambray.</p>  
    <div class="flex justify-center">  
     <button class="inline-flex text-white bg-indigo-500 border-0 py-2 px-6 focus:outline-none hover:bg-indigo-600 rounded text-lg">Button</button>  
     <button class="ml-4 inline-flex text-gray-700 bg-gray-100 border-0 py-2 px-6 focus:outline-none hover:bg-gray-200 rounded text-lg">Button</button>  
    </div>  
   </div>  
   <div class="lg:max-w-lg lg:w-full md:w-1/2 w-5/6">  
    <img class="object-cover object-center rounded" alt="hero" src="https://dummyimage.com/720x600">  
   </div>  
  </div>  
 </section>  
  -------------Home Page code 1 finished ----------------  
 Home Page code no (2)   
 -------------------------------------Start------------------------------------  
 <section class="text-gray-600 body-font">  
  <div class="container mx-auto flex px-5 py-24 items-center justify-center flex-col">  
   <img class="lg:w-2/6 md:w-3/6 w-5/6 mb-10 object-cover object-center rounded" alt="hero" src="https://dummyimage.com/720x600">  
   <div class="text-center lg:w-2/3 w-full">  
    <h1 class="title-font sm:text-4xl text-3xl mb-4 font-medium text-gray-900">Microdosing synth tattooed vexillologist</h1>  
    <p class="mb-8 leading-relaxed">Meggings kinfolk echo park stumptown DIY, kale chips beard jianbing tousled. Chambray dreamcatcher trust fund, kitsch vice godard disrupt ramps hexagon mustache umami snackwave tilde chillwave ugh. Pour-over meditation PBR&B pickled ennui celiac mlkshk freegan photo booth af fingerstache pitchfork.</p>  
    <div class="flex justify-center">  
     <button class="inline-flex text-white bg-indigo-500 border-0 py-2 px-6 focus:outline-none hover:bg-indigo-600 rounded text-lg">Button</button>  
     <button class="ml-4 inline-flex text-gray-700 bg-gray-100 border-0 py-2 px-6 focus:outline-none hover:bg-gray-200 rounded text-lg">Button</button>  
    </div>  
   </div>  
  </div>  
 </section>  
 ------------------------------ Home Page code 2 finished -----------------------------  
 Home Page (3) Modified code Like Social media bar & Icon  
 ---------------------------------Start--------------------------------------  
 <section class="text-gray-600 body-font">  
  <div class="container px-5 py-24 mx-auto flex flex-wrap">  
   <div class="flex flex-wrap -mx-4 mt-auto mb-auto lg:w-1/2 sm:w-2/3 content-start sm:pr-10">  
    <div class="w-full sm:p-4 px-4 mb-6">  
     <h1 class="title-font font-medium text-xl mb-2 text-gray-900">Moon hashtag pop-up try-hard offal truffaut</h1>  
     <div class="leading-relaxed">Pour-over craft beer pug drinking vinegar live-edge gastropub, keytar neutra sustainable fingerstache kickstarter.</div>  
    </div>  
    <div class="p-4 sm:w-1/2 lg:w-1/4 w-1/2">  
     <h2 class="title-font font-medium text-3xl text-gray-900">2.7K</h2>  
     <p class="leading-relaxed">Users</p>  
    </div>  
    <div class="p-4 sm:w-1/2 lg:w-1/4 w-1/2">  
     <h2 class="title-font font-medium text-3xl text-gray-900">1.8K</h2>  
     <p class="leading-relaxed">Subscribes</p>  
    </div>  
    <div class="p-4 sm:w-1/2 lg:w-1/4 w-1/2">  
     <h2 class="title-font font-medium text-3xl text-gray-900">35</h2>  
     <p class="leading-relaxed">Downloads</p>  
    </div>  
    <div class="p-4 sm:w-1/2 lg:w-1/4 w-1/2">  
     <h2 class="title-font font-medium text-3xl text-gray-900">4</h2>  
     <p class="leading-relaxed">Products</p>  
    </div>  
   </div>  
   <div class="lg:w-1/2 sm:w-1/3 w-full rounded-lg overflow-hidden mt-6 sm:mt-0">  
    <img class="object-cover object-center w-full h-full" src="https://dummyimage.com/600x300" alt="stats">  
   </div>  
  </div>  
 </section>  
Download


 Step 3:- Footer Code:- Last Code of  our website is Footer code. I'll Share with you footer code also, so paste it above </body> tag and press right button on your mouse and select " open with live server".

Footer Code-

 <footer class="text-gray-600 body-font">  
  <div class="container px-5 py-8 mx-auto flex items-center sm:flex-row flex-col">  
   <a class="flex title-font font-medium items-center md:justify-start justify-center text-gray-900">  
    <svg xmlns="http://www.w3.org/2000/svg" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" class="w-10 h-10 text-white p-2 bg-indigo-500 rounded-full" viewBox="0 0 24 24">  
     <path d="M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5"></path>  
    </svg>  
    <span class="ml-3 text-xl">Tailblocks</span>  
   </a>  
   <p class="text-sm text-gray-500 sm:ml-4 sm:pl-4 sm:border-l-2 sm:border-gray-200 sm:py-2 sm:mt-0 mt-4">© 2020 Tailblocks —  
    <a href="https://twitter.com/knyttneve" class="text-gray-600 ml-1" rel="noopener noreferrer" target="_blank">@knyttneve</a>  
   </p>  
   <span class="inline-flex sm:ml-auto sm:mt-0 mt-4 justify-center sm:justify-start">  
    <a class="text-gray-500">  
     <svg fill="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" class="w-5 h-5" viewBox="0 0 24 24">  
      <path d="M18 2h-3a5 5 0 00-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 011-1h3z"></path>  
     </svg>  
    </a>  
    <a class="ml-3 text-gray-500">  
     <svg fill="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" class="w-5 h-5" viewBox="0 0 24 24">  
      <path d="M23 3a10.9 10.9 0 01-3.14 1.53 4.48 4.48 0 00-7.86 3v1A10.66 10.66 0 013 4s-4 9 5 13a11.64 11.64 0 01-7 2c9 5 20 0 20-11.5a4.5 4.5 0 00-.08-.83A7.72 7.72 0 0023 3z"></path>  
     </svg>  
    </a>  
    <a class="ml-3 text-gray-500">  
     <svg fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" class="w-5 h-5" viewBox="0 0 24 24">  
      <rect width="20" height="20" x="2" y="2" rx="5" ry="5"></rect>  
      <path d="M16 11.37A4 4 0 1112.63 8 4 4 0 0116 11.37zm1.5-4.87h.01"></path>  
     </svg>  
    </a>  
    <a class="ml-3 text-gray-500">  
     <svg fill="currentColor" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="0" class="w-5 h-5" viewBox="0 0 24 24">  
      <path stroke="none" d="M16 8a6 6 0 016 6v7h-4v-7a2 2 0 00-2-2 2 2 0 00-2 2v7h-4v-7a6 6 0 016-6zM2 9h4v12H2z"></path>  
      <circle cx="4" cy="4" r="2" stroke="none"></circle>  
     </svg>  
    </a>  
   </span>  
  </div>  
 </footer>  
 ----------------------------------Footer code (1) end---------------------------------------  
 Footer Code (2) Like Premium  
 ---------------------------------------- Start---------------------------------------------------  
 <footer class="text-gray-600 body-font">  
  <div class="container px-5 py-24 mx-auto">  
   <div class="flex flex-wrap md:text-left text-center -mb-10 -mx-4">  
    <div class="lg:w-1/6 md:w-1/2 w-full px-4">  
     <h2 class="title-font font-medium text-gray-900 tracking-widest text-sm mb-3">CATEGORIES</h2>  
     <nav class="list-none mb-10">  
      <li>  
       <a class="text-gray-600 hover:text-gray-800">First Link</a>  
      </li>  
      <li>  
       <a class="text-gray-600 hover:text-gray-800">Second Link</a>  
      </li>  
      <li>  
       <a class="text-gray-600 hover:text-gray-800">Third Link</a>  
      </li>  
      <li>  
       <a class="text-gray-600 hover:text-gray-800">Fourth Link</a>  
      </li>  
     </nav>  
    </div>  
    <div class="lg:w-1/6 md:w-1/2 w-full px-4">  
     <h2 class="title-font font-medium text-gray-900 tracking-widest text-sm mb-3">CATEGORIES</h2>  
     <nav class="list-none mb-10">  
      <li>  
       <a class="text-gray-600 hover:text-gray-800">First Link</a>  
      </li>  
      <li>  
       <a class="text-gray-600 hover:text-gray-800">Second Link</a>  
      </li>  
      <li>  
       <a class="text-gray-600 hover:text-gray-800">Third Link</a>  
      </li>  
      <li>  
       <a class="text-gray-600 hover:text-gray-800">Fourth Link</a>  
      </li>  
     </nav>  
    </div>  
    <div class="lg:w-1/6 md:w-1/2 w-full px-4">  
     <h2 class="title-font font-medium text-gray-900 tracking-widest text-sm mb-3">CATEGORIES</h2>  
     <nav class="list-none mb-10">  
      <li>  
       <a class="text-gray-600 hover:text-gray-800">First Link</a>  
      </li>  
      <li>  
       <a class="text-gray-600 hover:text-gray-800">Second Link</a>  
      </li>  
      <li>  
       <a class="text-gray-600 hover:text-gray-800">Third Link</a>  
      </li>  
      <li>  
       <a class="text-gray-600 hover:text-gray-800">Fourth Link</a>  
      </li>  
     </nav>  
    </div>  
    <div class="lg:w-1/6 md:w-1/2 w-full px-4">  
     <h2 class="title-font font-medium text-gray-900 tracking-widest text-sm mb-3">CATEGORIES</h2>  
     <nav class="list-none mb-10">  
      <li>  
       <a class="text-gray-600 hover:text-gray-800">First Link</a>  
      </li>  
      <li>  
       <a class="text-gray-600 hover:text-gray-800">Second Link</a>  
      </li>  
      <li>  
       <a class="text-gray-600 hover:text-gray-800">Third Link</a>  
      </li>  
      <li>  
       <a class="text-gray-600 hover:text-gray-800">Fourth Link</a>  
      </li>  
     </nav>  
    </div>  
    <div class="lg:w-1/6 md:w-1/2 w-full px-4">  
     <h2 class="title-font font-medium text-gray-900 tracking-widest text-sm mb-3">CATEGORIES</h2>  
     <nav class="list-none mb-10">  
      <li>  
       <a class="text-gray-600 hover:text-gray-800">First Link</a>  
      </li>  
      <li>  
       <a class="text-gray-600 hover:text-gray-800">Second Link</a>  
      </li>  
      <li>  
       <a class="text-gray-600 hover:text-gray-800">Third Link</a>  
      </li>  
      <li>  
       <a class="text-gray-600 hover:text-gray-800">Fourth Link</a>  
      </li>  
     </nav>  
    </div>  
    <div class="lg:w-1/6 md:w-1/2 w-full px-4">  
     <h2 class="title-font font-medium text-gray-900 tracking-widest text-sm mb-3">CATEGORIES</h2>  
     <nav class="list-none mb-10">  
      <li>  
       <a class="text-gray-600 hover:text-gray-800">First Link</a>  
      </li>  
      <li>  
       <a class="text-gray-600 hover:text-gray-800">Second Link</a>  
      </li>  
      <li>  
       <a class="text-gray-600 hover:text-gray-800">Third Link</a>  
      </li>  
      <li>  
       <a class="text-gray-600 hover:text-gray-800">Fourth Link</a>  
      </li>  
     </nav>  
    </div>  
   </div>  
  </div>  
  <div class="border-t border-gray-200">  
   <div class="container px-5 py-8 flex flex-wrap mx-auto items-center">  
    <div class="flex md:flex-nowrap flex-wrap justify-center items-end md:justify-start">  
     <div class="relative sm:w-64 w-40 sm:mr-4 mr-2">  
      <label for="footer-field" class="leading-7 text-sm text-gray-600">Placeholder</label>  
      <input type="text" id="footer-field" name="footer-field" class="w-full bg-gray-100 bg-opacity-50 rounded border border-gray-300 focus:ring-2 focus:bg-transparent focus:ring-indigo-200 focus:border-indigo-500 text-base outline-none text-gray-700 py-1 px-3 leading-8 transition-colors duration-200 ease-in-out">  
     </div>  
     <button class="inline-flex text-white bg-indigo-500 border-0 py-2 px-6 focus:outline-none hover:bg-indigo-600 rounded">Button</button>  
     <p class="text-gray-500 text-sm md:ml-6 md:mt-0 mt-2 sm:text-left text-center">Bitters chicharrones fanny pack  
      <br class="lg:block hidden">waistcoat green juice  
     </p>  
    </div>  
    <span class="inline-flex lg:ml-auto lg:mt-0 mt-6 w-full justify-center md:justify-start md:w-auto">  
     <a class="text-gray-500">  
      <svg fill="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" class="w-5 h-5" viewBox="0 0 24 24">  
       <path d="M18 2h-3a5 5 0 00-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 011-1h3z"></path>  
      </svg>  
     </a>  
     <a class="ml-3 text-gray-500">  
      <svg fill="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" class="w-5 h-5" viewBox="0 0 24 24">  
       <path d="M23 3a10.9 10.9 0 01-3.14 1.53 4.48 4.48 0 00-7.86 3v1A10.66 10.66 0 013 4s-4 9 5 13a11.64 11.64 0 01-7 2c9 5 20 0 20-11.5a4.5 4.5 0 00-.08-.83A7.72 7.72 0 0023 3z"></path>  
      </svg>  
     </a>  
     <a class="ml-3 text-gray-500">  
      <svg fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" class="w-5 h-5" viewBox="0 0 24 24">  
       <rect width="20" height="20" x="2" y="2" rx="5" ry="5"></rect>  
       <path d="M16 11.37A4 4 0 1112.63 8 4 4 0 0116 11.37zm1.5-4.87h.01"></path>  
      </svg>  
     </a>  
     <a class="ml-3 text-gray-500">  
      <svg fill="currentColor" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="0" class="w-5 h-5" viewBox="0 0 24 24">  
       <path stroke="none" d="M16 8a6 6 0 016 6v7h-4v-7a2 2 0 00-2-2 2 2 0 00-2 2v7h-4v-7a6 6 0 016-6zM2 9h4v12H2z"></path>  
       <circle cx="4" cy="4" r="2" stroke="none"></circle>  
      </svg>  
     </a>  
    </span>  
   </div>  
  </div>  
  <div class="bg-gray-100">  
   <div class="container mx-auto py-4 px-5 flex flex-wrap flex-col sm:flex-row">  
    <p class="text-gray-500 text-sm text-center sm:text-left">© 2020 Tailblocks —  
     <a href="https://twitter.com/knyttneve" class="text-gray-600 ml-1" target="_blank" rel="noopener noreferrer">@knyttneve</a>  
    </p>  
    <span class="sm:ml-auto sm:mt-0 mt-2 sm:w-auto w-full sm:text-left text-center text-gray-500 text-sm">Enamel pin tousled raclette tacos irony</span>  
   </div>  
  </div>  
 </footer>  
Download


Your Website will look like -


 

That's all about making a website by HTML, CSS, JavaScript. So friends if you liked our content don't forget to make us know by commenting bellow.

                                                             Team Themidom- Thanking You

Post a Comment

If you have have any doubt please let me know

Previous Post Next Post

Ads

Ads