Contact me

Profile Picture

Roshan kr Patel

Web Developer

  • Dashboard
  • resume
  • project
  • blog

Tech Blogs

Roadmap for Web Development

Hey there! 🌟 Starting web dev can feel like a lot, but chill—I got you covered. Let’s walk through the basics from scratch. By the end, you’ll know what’s what and how all the pieces fit together. Let’s go! 🚀

1. Languages You Gotta Know

First things first, the holy trinity of web dev:

  • HTML: The skeleton of your site 🦴.

  • CSS: The style, the looks, the drip 🎨.

  • JavaScript: The brains—makes things move and groove đź§ .

Once you’re comfy with these, you can flex with frameworks like React, Next.js, or whatever else is trendy. But first, the basics. 👇

HTML

HTML (HyperText Markup Language) is what structures your web page. Let’s break it down:

Basic Structure of HTML

Here’s how a typical HTML document looks:


<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>My First Web Page</title>

</head>

<body>

    <h1>Welcome to Web Dev 🖥️</h1>

    <p>This is my first web page! 🎉</p>

</body>

</html>

What Each Section Does

  • <!DOCTYPE html>: Tells the browser, "Hey, this is an HTML5 doc."

  • <html>: The root—everything lives inside this.

  • <head>: Contains meta info, links to stylesheets, scripts, etc.

    • <title>: Sets the title you see in the browser tab.
  • <body>: Where the content you see on the page goes.

Commonly Used HTML Tags

  • <h1> to <h6>: Headings for titles and subtitles.

  • <p>: Paragraphs for text content.

  • <a href="">: Links to navigate between pages or websites.

  • <img src="">: Adds images to your page.

  • <div>: Containers for grouping content.

  • <ul>, <ol>, <li>: Lists (unordered and ordered).

  • <table>: Creates tables for tabular data.

HTML builds the structure, but it’s pretty plain on its own. So, what’s next? Styling it up with CSS! 🎨

CSS

CSS (Cascading Style Sheets) is like the wardrobe for your HTML. It makes things look appealing and user-friendly.

How CSS Works

You can use CSS in three ways:

Inline CSS

Directly style an element inside the tag:


<h1 style="color: blue; font-size: 2rem;">Styled Heading đź’…</h1>

Internal CSS

Write styles in a <style> tag within the <head>:


<head>

    <style>

        body {

            font-family: Arial, sans-serif;

            background-color: #f0f0f0;

        }

        h1 {

            color: #333;

            text-align: center;

        }

    </style>

</head>

External CSS

Create a separate styles.css file:


body {

    font-family: Arial, sans-serif;

    background-color: #f0f0f0;

}

h1 {

    color: #333;

    text-align: center;

}

Link it in your HTML:


<head>

    <link rel="stylesheet" href="styles.css">

</head>

CSS takes your basic structure and makes it pretty. But if you want to make it interactive, you’ll need JavaScript! 🧠

JavaScript

JavaScript (JS) makes your page come alive! Whether it’s responding to user actions or updating content dynamically, JS has your back.

Why JS?

Let’s say you want to:

  • Show a pop-up when someone clicks a button.

  • Update part of the page without reloading it.

  • Handle user interactions like forms, clicks, etc.

Here’s how you can use it:

Inline JavaScript

Directly add behavior to an element:


<button onclick="alert('Hello, World! 🌍')">Click Me</button>

External JavaScript

Create a script.js file:


function showMessage() {

    alert('Hello, JavaScript! 🥳');

}

Link it in your HTML:


<body>

    <button onclick="showMessage()">Click Me</button>

    <script src="script.js"></script>

</body>

Example: Dynamic Content

Let’s combine HTML, CSS, and JS for something cool:

HTML


<div id="box" class="box"></div>

<button onclick="changeColor()">Change Color</button>

CSS


.box {

    width: 100px;

    height: 100px;

    background-color: red;

}

JavaScript


function changeColor() {

    const box = document.getElementById('box');

    box.style.backgroundColor = 'blue';

}

Wrapping Up

Once you’ve got the basics, here’s what to do next:

  1. Frameworks: React, Next.js, Angular, etc.

  2. Responsive Design: Use Tailwind CSS or Bootstrap to make it look good on all devices 📱.

  3. APIs: Fetch and display real data.

  4. Version Control: Get on GitHub and save your progress 🗂️.

Remember, practice makes perfect. Start small, build stuff, and most importantly—have fun! 💪