HTML, CSS, and JavaScript Summary

What is HTML?

HTML (HyperText Markup Language) is the standard language for creating web pages. It provides the structure using elements such as headings, paragraphs, images, and links.

Example:

<!DOCTYPE html>
<html>
  <head>
    <title>HTML Example</title>
  </head>
  <body>
    <h1>Hello, HTML!</h1>
    <p>This is a simple HTML page.</p>
  </body>
</html>

What is CSS?

CSS (Cascading Style Sheets) is used to style and layout web pages. It controls colors, fonts, spacing, and responsiveness.

Example:

body {
  background-color: lightblue;
  color: black;
  font-family: Arial, sans-serif;
}
h1 {
  color: darkblue;
}

What is JavaScript?

JavaScript is a programming language that adds interactivity to websites. It enables dynamic content, user interactions, and animations.

Example:

<script>
  function greet() {
    alert("Hello, JavaScript!");
  }
</script>
<button onclick="greet()">Click Me</button>

Conclusion

HTML provides the structure, CSS enhances the design, and JavaScript adds interactivity. Together, they create modern and dynamic web experiences.