Web Development Basics

Overview

Web development involves creating websites or web applications using technologies like HTML, CSS, and JavaScript. It encompasses both front-end and back-end development.

HTML Basics

HTML (HyperText Markup Language) is the standard markup language for creating web pages. It provides the structure and content of a webpage.

<!DOCTYPE html>
<html>
<head>
    <title>Page Title</title>
</head>
<body>
    <h1>This is a Heading</h1>
    <p>This is a paragraph.</p>
</body>
</html>

CSS Basics

CSS (Cascading Style Sheets) is used for styling HTML elements. It controls the layout, design, and presentation of web pages.

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
}

JavaScript Basics

JavaScript is a programming language used to make web pages interactive. It enables dynamic content, user interactions, and more.

document.getElementById('demo').innerHTML='Hello,JavaScript!';

Front-end and Back-end

Front-end involves what users see and interact with on a website, while back-end focuses on server-side operations, databases, and logic.