Skip to content
Premium course Programming Certificate included

Web Development Basics: HTML, CSS & JavaScript

Build and publish your first responsive website

  • Beginner level
  • 9 hours
  • 13 lessons
  • English
  • By Muninder Singh

What you'll learn

  • Explain how browsers, servers and URLs work together
  • Write semantic HTML pages with text, links, images, tables and forms
  • Style pages with CSS selectors, colours, fonts and the box model
  • Build layouts with Flexbox and Grid
  • Make layouts responsive for mobile with media queries
  • Add interactivity with JavaScript, the DOM and events
  • Use Git and GitHub to save and share your code
  • Publish a personal portfolio website on a free static host

Course curriculum

4 sections · 13 lessons · 9h 20m

01HTML Foundations 3 lessons
  • How Websites Work Free preview30 min

    What happens when you open a website?

    When you type an address such as https://example.com into your browser and press Enter, a lot happens in less than a second. Understanding this journey makes web development much less mysterious.

    1. The browser reads the URL. A URL (Uniform Resource Locator) has parts: the protocol (https://), the domain name (example.com) and a path (/about).
    2. DNS finds the server. The Domain Name System works like a phone book. It turns the domain name into an IP address, the numeric address of the computer (server) that hosts the site.
    3. The browser sends a request. Using HTTP or HTTPS, it asks the server for the page.
    4. The server sends a response. The response contains files: usually an HTML document, which links to CSS files, JavaScript files and images.
    5. The browser renders the page. It reads the HTML, applies the CSS, runs the JavaScript and draws the result on your screen.

    HTTPS is the secure version of HTTP. It encrypts the data between your browser and the server, which is why you see a padlock icon. Every modern website should use HTTPS.

    Clients and servers

    • The client is the device and browser that asks for the page: your phone or laptop.
    • The server is a computer that stores the website files and sends them when asked.

    In this course you will build front-end code: the part that runs in the browser. The back-end (servers, databases, logins and payments) is a later step.

    The three languages of the web

    LanguageRoleEveryday comparison
    HTMLStructure and content: headings, paragraphs, images, linksThe walls and rooms of a house
    CSSPresentation: colours, fonts, spacing, layoutPaint, furniture and decoration
    JavaScriptBehaviour: responding to clicks, changing content, checking formsElectricity: switches, fans and lights

    You can build a useful page with HTML alone, make it attractive with CSS, and make it interactive with JavaScript.

    Set up your tools

    You need only two free tools:

    1. A modern browser such as Chrome, Edge or Firefox.
    2. A code editor. Visual Studio Code (VS Code) is free and popular. Download it from its official website, code.visualstudio.com. Notepad also works for your first page, but VS Code highlights mistakes and saves time.

    Create a folder called my-website on your computer. Keep all your course files inside it.

    Your first web page

    Open VS Code, choose File → Open Folder and select my-website. Create a new file called index.html and type:

    <!DOCTYPE html>
    <html lang="en">
    <head>
      <meta charset="UTF-8">
      <title>My First Page</title>
    </head>
    <body>
      <h1>Hello, world!</h1>
      <p>This is my first web page. I am learning web development.</p>
    </body>
    </html>

    Save the file, then open the my-website folder in File Explorer and double-click index.html. Your browser opens it and shows a large heading and a paragraph. The text inside <title> appears on the browser tab.

    Change the text, save and press F5 (refresh) in the browser to see the update. This edit, save, refresh loop is how you will work throughout the course.

    Developer tools: your best friend

    Every browser includes Developer Tools. Right-click anywhere on a page and choose Inspect, or press F12. You can:

    • See the HTML of any page in the Elements tab
    • Try CSS changes live without editing files
    • See JavaScript errors in the Console tab

    Open developer tools on a few websites you use and explore their HTML. You cannot break a real website this way; changes disappear when you refresh.

    Key points

    • A browser requests files from a server using a URL, DNS and HTTP(S).
    • HTML gives structure, CSS gives style and JavaScript gives behaviour.
    • Use a code editor, save your files in one folder and refresh the browser after each change.
    • Developer tools (F12) let you inspect and experiment with any page.

    Practice task

    1. Install VS Code and create a my-website folder.
    2. Create index.html with the example above, but change the heading to your name and the paragraph to one line about yourself.
    3. Open the page in your browser and check that the tab shows your title.
    4. Open developer tools on any news website and find its <title> element in the Elements tab.
  • HTML Structure and Text Free preview45 min

    How HTML works

    HTML (HyperText Markup Language) uses tags to mark up content. Most tags come in pairs: an opening tag and a closing tag with a slash.

    <p>This is a paragraph.</p>

    The opening tag, the content and the closing tag together form an element. Tags can also have attributes, which give extra information. They are written inside the opening tag as name="value":

    <a href="https://www.wikipedia.org">Visit Wikipedia</a>

    Some elements have no content and no closing tag, such as <br> (line break) and <img>.

    The basic page structure

    Every HTML page follows the same skeleton:

    <!DOCTYPE html>
    <html lang="en">
    <head>
      <meta charset="UTF-8">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <title>Asha Verma | Profile</title>
    </head>
    <body>
      <!-- Everything visible goes here -->
    </body>
    </html>
    • <!DOCTYPE html> tells the browser this is a modern HTML document.
    • <html lang="en"> wraps the whole page and states its language, which helps screen readers and search engines.
    • <head> holds information about the page: the character set, the title and, later, links to CSS.
    • The viewport meta tag makes the page display properly on phones.
    • <body> holds everything the visitor sees.
    • <!-- ... --> is a comment; the browser ignores it.

    Headings and paragraphs

    HTML has six heading levels, from <h1> (most important) to <h6>. Use one <h1> per page for the main title, then <h2> for sections and <h3> for sub-sections. Do not choose headings just for their size; size can be changed with CSS. Search engines and screen readers use headings to understand the page.

    <h1>Asha Verma</h1>
    <p>I am a <strong>commerce student</strong> from Indore learning <em>web development</em>.</p>
    <h2>Skills</h2>

    <strong> marks important text (shown bold) and <em> marks emphasis (shown in italics).

    Lists

    Use an unordered list <ul> for bullet points and an ordered list <ol> for numbered steps. Each item goes inside <li>.

    <ul>
      <li>HTML</li>
      <li>CSS</li>
      <li>JavaScript</li>
    </ul>
    
    <ol>
      <li>Plan the page</li>
      <li>Write the HTML</li>
      <li>Add styles</li>
    </ol>

    Links

    The <a> (anchor) tag creates links. The href attribute holds the destination.

    <a href="about.html">About me</a>
    <a href="https://github.com" target="_blank" rel="noopener">My GitHub</a>
    <a href="mailto:asha@example.com">Email me</a>
    <a href="#contact">Jump to contact section</a>
    • about.html is a relative link to another file in the same folder.
    • target="_blank" opens the link in a new tab; add rel="noopener" for safety.
    • #contact jumps to the element with id="contact" on the same page.

    Semantic layout tags

    Semantic tags describe the meaning of each part of the page. They make your code easier to read and help accessibility and SEO.

    <body>
      <header>
        <h1>Asha Verma</h1>
        <nav>
          <a href="#about">About</a>
          <a href="#skills">Skills</a>
          <a href="#contact">Contact</a>
        </nav>
      </header>
      <main>
        <section id="about">
          <h2>About me</h2>
          <p>I enjoy building simple, useful websites.</p>
        </section>
        <section id="skills">
          <h2>Skills</h2>
          <ul>
            <li>HTML</li>
            <li>CSS</li>
          </ul>
        </section>
      </main>
      <footer>
        <p id="contact">Contact: asha@example.com</p>
      </footer>
    </body>
    TagUse it for
    headerThe top area: logo, site name, navigation
    navA group of main navigation links
    mainThe main content (one per page)
    sectionA themed group of content with a heading
    articleSelf-contained content, such as a blog post
    footerThe bottom area: contact details, copyright

    Common mistakes

    • Forgetting to close tags, or closing them in the wrong order. Close the most recently opened tag first.
    • Using <br> repeatedly for spacing instead of paragraphs and CSS.
    • Skipping heading levels or using several <h1> tags.

    Practice task

    1. Create profile.html using the page skeleton.
    2. Add a header with your name in an <h1> and a nav with three links to sections on the page.
    3. Inside main, add three sections: About me, Skills (an unordered list) and Goals (an ordered list).
    4. Add a footer with an email link using mailto:.
    5. Open the page and check that each navigation link jumps to the right section.
  • Images, Tables and Forms 45 min
02Styling with CSS 3 lessons
  • CSS Basics 45 min
  • Layouts with Flexbox and Grid 50 min
  • Responsive Design 40 min
03JavaScript Essentials 3 lessons
  • JavaScript Basics 50 min
  • The DOM and Events 50 min
  • Mini Project: Interactive Quiz 50 min
04Publishing Your Website 4 lessons
  • Portfolio Website Project 60 min
  • Git and GitHub Basics 40 min
  • Free Hosting and Next Steps 35 min
  • Final Exam 20 min

About this course

Build real web pages from day one

Every website you use, from a bank's login page to an online shop, is built with three core technologies: HTML for structure, CSS for design and JavaScript for interactivity. This course teaches all three from zero, with small working examples in every lesson that you can type, run and change yourself.

What you will build

  • A personal profile page with headings, lists, links, images and a contact form
  • A responsive card layout and navigation bar using Flexbox and Grid
  • An interactive quiz that checks answers and shows a score
  • A complete portfolio website, published online with a free host and your code saved on GitHub

What you need

Only a computer with a modern browser (Chrome, Edge or Firefox) and a free code editor such as Visual Studio Code. The tools used in the course are free, and the code runs directly in the browser, so even a low-cost laptop is enough.

Who it is for

Students, job seekers, shop owners who want their own site, and anyone curious about how websites work. No programming experience is needed.

Requirements

  • Basic computer skills: creating folders, saving files and using a browser
  • A computer with a browser and a free code editor (e.g., VS Code)
  • No programming experience needed

Earn a verifiable certificate

Pass the final online exam (20 minutes, 15 questions, pass mark 40%) to receive your certificate instantly. Each certificate has a unique number and QR code for instant verification.

This is an independent, institute-issued skill-training certificate — not a government-recognised degree or diploma.

Your educator

M

Muninder Singh

Frequently asked questions

Do I need to know programming before starting?
No. The course starts with how websites work and explains every line of code. JavaScript is introduced only after you are comfortable with HTML and CSS.
Can I do this course on a mobile phone?
You can read the lessons on a phone, but you need a computer or laptop to write code comfortably. Any basic laptop with a modern browser is enough.
Will I have a website online by the end?
Yes. In the last section you publish your portfolio on a free static hosting service and save the code on GitHub, so you can share the link with employers or clients.
Will this course make me job-ready as a web developer?
It gives you a strong foundation and a portfolio. Most web development jobs also expect further skills, such as a JavaScript framework, backend basics and more projects, which you can learn next.
Is a certificate included?
Yes. After enrolling, pass the final exam with 40% or more to download your GCI EDU certificate. It is an independent skill-training certificate, not a government qualification.

Have a question about this course?

Leave your details and our team will get back to you, usually within one working day.

Share a phone number or an email so we can reach you. We never share your details.

Related articles

Career Guides 6 min read

How to Become a Web Developer from Scratch

A clear web developer roadmap for complete beginners: HTML, CSS, JavaScript, Git, a framework and the back end, with project ideas, a month-by-month plan and honest advice on freelancing and first jobs.

Read article →

You may also like

₹499

Includes certificate

Enrol now