14. Introduction to HTML and Web Design
What is HTML?
HTML stands for HyperText Markup Language. It is the standard language used to create and structure web pages.
- HTML is not a programming language
- It uses tags to define content
- It tells the browser how to display text, images, and links
Features of HTML
- Easy to learn and use
- Platform independent
- Supports multimedia elements
- Works with CSS and JavaScript
What is Web Design?
Web design refers to the process of planning, creating, and maintaining the layout, appearance, and usability of a website.
- Layout and structure
- Colors and fonts
- User experience
- Responsiveness
Basic Structure of an HTML Document
Every HTML page follows a basic structure that helps browsers understand the content correctly.
<!DOCTYPE html>
<html>
<head>
<title>My Web Page</title>
</head>
<body>
<h1>Welcome to My Website</h1>
<p>This is my first web page.</p>
</body>
</html>
HTML Tags and Elements
| Tag | Purpose |
|---|---|
| <h1> to <h6> | Headings |
| <p> | Paragraph |
| <a> | Link |
| <img> | Image |
| <table> | Table |
Responsive Web Design
Responsive web design ensures that a website looks good on all devices such as desktops, tablets, and mobile phones.
- Flexible layouts
- Responsive images
- Media queries
HTML and web design are essential skills for building websites and online platforms. HTML provides the structure, while web design enhances appearance and usability. A strong foundation in HTML and web design opens the door to web development, blogging, and modern digital careers.