What is HTML?
HTML (Hyper Text Markup Language)
It is used to create webpage with different styles, which can be simple, elegant, attractive, funny, creative, etc. These web pages are a combination of web pages, paragraphs, links, images, and much more. It helps to lay the foundation of the website, which is further enhanced using CSS and JavaScript.
The basic program of HTML is:
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Your Web Page Title</title>
</head>
<body>
<!-- Your content goes here -->
<h1>Hello, World!</h1>
<p>This is a simple HTML document.</p>
</body>
</html>
CSS (Cascading Style Sheets)
It is a styling language that is used to describe how the website will appear to all the people who visit it. CSS is responsible for making the website either very attractive or very bad from the perspective of all the people visiting it. It follows a cascade fashion where styles could be merged, overridden, or inherited because of the priority on which they are placed. This is done so that we can get uniformity on the website, making it easy for others to use. But the interesting thing is that we can change the style in CSS as well as HTML.
body {
font-family: 'Arial', sans-serif;
background-color: #f0f0f0;
color: #333;
margin: 20px;
}
h1 {
color: #007BFF;
}