HTML_CSS_Revision_Guide
HTML_CSS_Revision_Guide
Introduction
HTML (HyperText Markup Language) and CSS (Cascading Style Sheets) are foundational
technologies in web development. HTML structures the content of a webpage, while CSS
controls the visual presentation. Understanding their syntax and key properties is essential
for designing effective, accessible, and visually appealing websites.
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>This is a Heading</h1>
<p>This is a paragraph.</p>
</body>
</html>
Flowchart: HTML Document Structure
<!DOCTYPE html>
<html>
<head> → <title>
<body>
↓ ↓
<h1> <p>
|------------|--------------------------------------|
| `<p>` | Paragraph |
selector {
property: value;
selector
{ property: value; }
┌────────────┬────────────┬────────────┐
└────────────┴────────────┴────────────┘
Types of Selectors
| Selector | Description | Example |
|----------------|------------------------------------------------|------------------------|
|--------------|---------------|--------------------------------------|---------------------------|
<!DOCTYPE html>
<html>
<head>
<style>
body {
background-color: #f0f0f0;
font-family: Arial;
.container {
width: 80%;
margin: auto;
padding: 20px;
h1 {
color: navy;
p{
font-size: 14px;
</style>
</head>
<body>
<div class="container">
<h1>Welcome!</h1>
</div>
</body>
</html>
Summary
- Use semantic HTML tags for better structure and accessibility.
- Use flowcharts and tables to visually grasp the relationships and rules.
**End of Guide**