Skip to content
    geeksforgeeks
    • Interview Prep
      • DSA
      • Interview Corner
      • Aptitude & Reasoning
      • Practice Coding Problems
      • All Courses
    • Tutorials
      • Python
      • Java
      • ML & Data Science
      • Programming Languages
      • Web Development
      • CS Subjects
      • DevOps
      • Software and Tools
      • School Learning
    • Tracks
      • Languages
        • Python
        • C
        • C++
        • Java
        • Advanced Java
        • SQL
        • JavaScript
        • C#
      • Interview Preparation
        • GfG 160
        • GfG 360
        • System Design
        • Core Subjects
        • Interview Questions
        • Interview Puzzles
        • Aptitude and Reasoning
        • Product Management
        • Computer Organisation and Architecture
      • Data Science
        • Python
        • Data Analytics
        • Complete Data Science
        • Gen AI
        • Agentic AI
      • Dev Skills
        • Full-Stack Web Dev
        • DevOps
        • Software Testing
        • CyberSecurity
        • NextJS
        • Git
      • Tools
        • Computer Fundamentals
        • AI Tools
        • MS Excel & Google Sheets
        • MS Word & Google Docs
      • Maths
        • Maths For Computer Science
        • Engineering Mathematics
        • School Maths
    • JS Tutorial
    • Web Tutorial
    • A to Z Guide
    • Projects
    • OOP
    • DOM
    • Set
    • Map
    • Math
    • Number
    • Boolean
    • Exercise
    • Interview Questions
    Open In App

    Learn Web Development Basics with HTML CSS and JavaScript

    Last Updated : 23 Jul, 2025
    Comments
    Improve
    Suggest changes
    2 Likes
    Like
    Report

    Web development refers to the creating, building, and maintaining of websites. It includes aspects such as web design, web publishing, web programming, and database management. It is the creation of an application that works over the internet i.e. websites.

    The word Web Development is made up of two words, that is:

    • Web: It refers to websites, web pages, or anything that works over the internet.
    • Development: It refers to building the application from scratch.

    Table of Content

    • Web Development can be classified into two ways
    • Frontend Development
    • Popular Frontend Technologies
    • What is HTML?
    • What is CSS?
    • What is JavaScript?

    Web Development can be classified into two ways

    • Frontend Development
    • Backend Development

    Frontend Development

    Front-end Development is the development or creation of a user interface using some markup languages and other tools. It is basically the development of the user side where only user interaction will be counted. It consists of the interface where buttons, texts, alignments, etc are involved and used by the user.

    Popular Frontend Technologies

    • HTML: HTML stands for HyperText Markup Language. It is used to design the front end portion of web pages using markup language. It acts as a skeleton for a website since it is used to make the structure of a website.
    • CSS: Cascading Style Sheets fondly referred to as CSS is a simply designed language intended to simplify the process of making web pages presentable. It is used to style our website.
    • JavaScript: JavaScript is a scripting language used to provide a dynamic behavior to our website.

    What is HTML?

    HTML stands for HyperText Markup Language. It is the standard language used to create and design web pages on the internet. It was introduced by Tim Berners-Lee in 1991 at CERN as a simple markup language. Since then, it has evolved through versions from HTML 2.0 to HTML5 (the latest 2024 version).

    HTML is a combination of Hypertext and Markup language. Hypertext defines the link between the web pages and Markup language defines the text document within the tag.

    Example: This example shows the basic use of HTML on the web browser.

    HTML
    <!DOCTYPE html> 
    <html> 
    
    <head> 
        <title>HTML Tutorial</title> 
    </head> 
    
    <body> 
        <h2>Welcome To GFG</h2> 
        <p>Hello World! Hello from GFG </p> 
    </body> 
    
    </html>
    

    What is CSS?

    CSS or Cascading Style Sheets is a stylesheet language used to add styles to the HTML document. It describes how HTML elements should be displayed on the web page.

    CSS was first proposed by Håkon Wium Lie in 1994 and later developed by Lie and Bert Bos, who published the CSS1 specification in 1996.

    Basic CSS Example

    CSS has 3 ways to style your HTML:

    • Inline: Add styles directly to HTML elements (limited use).
    • Internal: Put styles inside the HTML file in a <style> tag.
    • External: Create a separate CSS file (.css) and link it to your HTML.

    Example: This example shows the use of external, internal and inline CSS into HTML file.

    HTML
    <!-- File name: index.html -->
    <!DOCTYPE html>
    <html>
    
    <head>
        <!-- Importing External CSS -->
        <link rel="stylesheet" href="style.css" />
        <!-- Using Internal CSS -->
        <style>
            h2 {
                color: green;
            }
        </style>
    </head>
    
    <body>
        <!-- Using Inline CSS -->
        <h2 style="text-align: center;">Welcome To GFG</h2>
        <p>Showing all type of CSS use - GeeksforGeeks</p>
    </body>
    
    </html>
    
    CSS
    /* External CSS */
    /* File name: style.css */
    p {
        text-align: center;
    }
    

    Output:

    TTTTTTTTTTTTTTT
    Output

    What is JavaScript ?

    JavaScript is a lightweight, cross-platform, single-threaded, and interpreted compiled programming language. It is also known as the scripting language for webpages. It is well-known for the development of web pages, and many non-browser environments also use it.

    JavaScript is a weakly typed language (dynamically typed). JavaScript can be used for Client-side developments as well as Server-side developments. JavaScript is both an imperative and declarative type of language. JavaScript contains a standard library of objects, like Array, Date, and Math, and a core set of language elements like operators, control structures, and statements. 

    Example: This example shows the alert by the use of alert method provided by JavaScript.

    HTML
    <!DOCTYPE html>
    <html lang="en">
    
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width,
                                       initial-scale=1.0">
        <title>Custom Alert Box</title>
        <style>
            body {
                display: flex;
                justify-content: center;
                width: 100vw;
                margin-top: 20px;
            }
    
            .alert {
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
                background-color: #f8d7da;
                color: #721c24;
                padding: 15px 20px;
                border: 1px solid #f5c6cb;
                border-radius: 5px;
            }
        </style>
    </head>
    
    <body>
    
        <button onclick="showAlert()">Show Alert</button>
    
        <script>
            function showAlert() {
                const alertBox = document.createElement('div');
                alertBox.className = 'alert';
                alertBox.textContent = 'This is a custom alert box.';
                document.body.appendChild(alertBox);
            }
        </script>
    
    </body>
    
    </html>
    

    Output:

    Untitled-design

    There are others frontend frameworks are used to create a website so that the UI can be more better and it could be fast running website.

    Create Quiz

    M

    meetahaloyx4
    Improve

    M

    meetahaloyx4
    Improve
    Article Tags :
    • JavaScript
    • Web Technologies
    • Frontend-Development

    Explore

      JavaScript Basics

      Introduction to JavaScript

      4 min read

      Variables and Datatypes in JavaScript

      6 min read

      JavaScript Operators

      5 min read

      Control Statements in JavaScript

      4 min read

      Array & String

      JavaScript Arrays

      7 min read

      JavaScript Array Methods

      7 min read

      JavaScript Strings

      5 min read

      JavaScript String Methods

      9 min read

      Function & Object

      Functions in JavaScript

      5 min read

      JavaScript Function Expression

      3 min read

      Function Overloading in JavaScript

      4 min read

      Objects in JavaScript

      4 min read

      JavaScript Object Constructors

      4 min read

      OOP

      Object Oriented Programming in JavaScript

      3 min read

      Classes and Objects in JavaScript

      4 min read

      What Are Access Modifiers In JavaScript ?

      5 min read

      JavaScript Constructor Method

      7 min read

      Asynchronous JavaScript

      Asynchronous JavaScript

      2 min read

      JavaScript Callbacks

      4 min read

      JavaScript Promise

      4 min read

      Event Loop in JavaScript

      4 min read

      Async and Await in JavaScript

      2 min read

      Exception Handling

      Javascript Error and Exceptional Handling

      6 min read

      JavaScript Errors Throw and Try to Catch

      2 min read

      How to create custom errors in JavaScript ?

      2 min read

      JavaScript TypeError - Invalid Array.prototype.sort argument

      1 min read

      DOM

      HTML DOM (Document Object Model)

      8 min read

      How to select DOM Elements in JavaScript ?

      3 min read

      JavaScript Custom Events

      4 min read

      JavaScript addEventListener() with Examples

      9 min read

      Advanced Topics

      Closure in JavaScript

      4 min read

      JavaScript Hoisting

      6 min read

      Scope of Variables in JavaScript

      3 min read

      JavaScript Higher Order Functions

      7 min read

      Debugging in JavaScript

      4 min read
    top_of_element && top_of_screen < bottom_of_element) || (bottom_of_screen > articleRecommendedTop && top_of_screen < articleRecommendedBottom) || (top_of_screen > articleRecommendedBottom)) { if (!isfollowingApiCall) { isfollowingApiCall = true; setTimeout(function(){ if (loginData && loginData.isLoggedIn) { if (loginData.userName !== $('#followAuthor').val()) { is_following(); } else { $('.profileCard-profile-picture').css('background-color', '#E7E7E7'); } } else { $('.follow-btn').removeClass('hideIt'); } }, 3000); } } }); } $(".accordion-header").click(function() { var arrowIcon = $(this).find('.bottom-arrow-icon'); arrowIcon.toggleClass('rotate180'); }); }); window.isReportArticle = false; function report_article(){ if (!loginData || !loginData.isLoggedIn) { const loginModalButton = $('.login-modal-btn') if (loginModalButton.length) { loginModalButton.click(); } return; } if(!window.isReportArticle){ //to add loader $('.report-loader').addClass('spinner'); jQuery('#report_modal_content').load(gfgSiteUrl+'wp-content/themes/iconic-one/report-modal.php', { PRACTICE_API_URL: practiceAPIURL, PRACTICE_URL:practiceURL },function(responseTxt, statusTxt, xhr){ if(statusTxt == "error"){ alert("Error: " + xhr.status + ": " + xhr.statusText); } }); }else{ window.scrollTo({ top: 0, behavior: 'smooth' }); $("#report_modal_content").show(); } } function closeShareModal() { const shareOption = document.querySelector('[data-gfg-action="share-article"]'); shareOption.classList.remove("hover_share_menu"); let shareModal = document.querySelector(".hover__share-modal-container"); shareModal && shareModal.remove(); } function openShareModal() { closeShareModal(); // Remove existing modal if any let shareModal = document.querySelector(".three_dot_dropdown_share"); shareModal.appendChild(Object.assign(document.createElement("div"), { className: "hover__share-modal-container" })); document.querySelector(".hover__share-modal-container").append( Object.assign(document.createElement('div'), { className: "share__modal" }), ); document.querySelector(".share__modal").append(Object.assign(document.createElement('h1'), { className: "share__modal-heading" }, { textContent: "Share to" })); const socialOptions = ["LinkedIn", "WhatsApp","Twitter", "Copy Link"]; socialOptions.forEach((socialOption) => { const socialContainer = Object.assign(document.createElement('div'), { className: "social__container" }); const icon = Object.assign(document.createElement("div"), { className: `share__icon share__${socialOption.split(" ").join("")}-icon` }); const socialText = Object.assign(document.createElement("span"), { className: "share__option-text" }, { textContent: `${socialOption}` }); const shareLink = (socialOption === "Copy Link") ? Object.assign(document.createElement('div'), { role: "button", className: "link-container CopyLink" }) : Object.assign(document.createElement('a'), { className: "link-container" }); if (socialOption === "LinkedIn") { shareLink.setAttribute('href', `https://www.linkedin.com/sharing/share-offsite/?url=${window.location.href}`); shareLink.setAttribute('target', '_blank'); } if (socialOption === "WhatsApp") { shareLink.setAttribute('href', `https://api.whatsapp.com/send?text=${window.location.href}`); shareLink.setAttribute('target', "_blank"); } if (socialOption === "Twitter") { shareLink.setAttribute('href', `https://twitter.com/intent/tweet?url=${window.location.href}`); shareLink.setAttribute('target', "_blank"); } shareLink.append(icon, socialText); socialContainer.append(shareLink); document.querySelector(".share__modal").appendChild(socialContainer); //adding copy url functionality if(socialOption === "Copy Link") { shareLink.addEventListener("click", function() { var tempInput = document.createElement("input"); tempInput.value = window.location.href; document.body.appendChild(tempInput); tempInput.select(); tempInput.setSelectionRange(0, 99999); // For mobile devices document.execCommand('copy'); document.body.removeChild(tempInput); this.querySelector(".share__option-text").textContent = "Copied" }) } }); // document.querySelector(".hover__share-modal-container").addEventListener("mouseover", () => document.querySelector('[data-gfg-action="share-article"]').classList.add("hover_share_menu")); } function toggleLikeElementVisibility(selector, show) { document.querySelector(`.${selector}`).style.display = show ? "block" : "none"; } function closeKebabMenu(){ document.getElementById("myDropdown").classList.toggle("show"); }
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Campus Training Program
  • Explore
  • POTD
  • Job-A-Thon
  • Blogs
  • Nation Skill Up
  • Tutorials
  • Programming Languages
  • DSA
  • Web Technology
  • AI, ML & Data Science
  • DevOps
  • CS Core Subjects
  • Interview Preparation
  • Software and Tools
  • Courses
  • ML and Data Science
  • DSA and Placements
  • Web Development
  • Programming Languages
  • DevOps & Cloud
  • GATE
  • Trending Technologies
  • Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
  • Preparation Corner
  • Interview Corner
  • Aptitude
  • Puzzles
  • GfG 160
  • System Design
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.
See More

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences