Introduction of html css java (understanding level_ easy)
Introduction of html css java (understanding level_ easy)
HTML, CSS, and JavaScript are the three core technologies used to build web pages.
Each plays a unique role, and together, they form the foundation of the modern web.
Here's a simple breakdown of each:
---
HTML is the structure of a webpage. It defines the content and layout of the page
using "tags." Think of HTML as the skeleton of a website.
CSS controls how HTML elements look—like colors, fonts, and layout. It’s the style
that makes a webpage visually appealing.
### **JavaScript**
JavaScript makes a webpage interactive. It lets you add dynamic features like
buttons, forms, and animations that respond to user actions.
---
### How They Work Together
**Example:**
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Interactive Page</title>
<style>
body { font-family: Arial, sans-serif; text-align: center; }
button { padding: 10px 20px; font-size: 16px; background-color: #4CAF50; color:
white; }
</style>
</head>
<body>
<h1>Welcome!</h1>
<button id="button">Click Me!</button>
<script>
document.getElementById("button").onclick = function() {
alert("Hello, World!");
};
</script>
</body>
</html>
```
Here:
- **HTML** builds the content.
- **CSS** styles the button.
- **JavaScript** makes the button show an alert when clicked.
---
### Conclusion
These three technologies work together to create websites that are functional,
beautiful, and engaging.