Ultimate HTML CSS Guide
Ultimate HTML CSS Guide
1. Introduction to Coding
Coding is the process of writing instructions for computers. HTML and CSS are the foundation of
web development. HTML structures content, while CSS styles and enhances the design.
2. Basics of HTML
HTML (HyperText Markup Language) uses tags to structure a webpage. Below is a basic example:
<!DOCTYPE html>
<html>
<head>
<title>My First Page</title>
</head>
<body>
<h1>Welcome to My Website</h1>
<p>This is a simple paragraph.</p>
</body>
</html>
3. HTML Forms
Forms allow users to input data. Example of a basic form:
<form>
<label for="name">Name:</label>
<input type="text" id="name" name="name"><br>
<label for="email">Email:</label>
<input type="email" id="email" name="email"><br>
5. Basics of CSS
CSS (Cascading Style Sheets) enhances the visual presentation of HTML pages.
body {
background-color: lightblue;
font-family: Arial, sans-serif;
}
h1 {
color: navy;
text-align: center;
}
body {
font-family: Arial, sans-serif;
background-color: #f4f4f4;
text-align: center;
}
h1 {
color: darkblue;
}