Introduction to HTML
INTRODUCTION TO HTML
HTML stands for HyperText Markup Language. It is the standard markup language used to create and design
web pages.
Key points:
- It describes the structure of web pages using markup.
- HTML elements are represented by tags such as <html>, <head>, <body>, etc.
- It allows embedding images, text, videos, forms, and other elements.
HTML STRUCTURE:
A basic HTML document includes:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
</body>
</html>
HTML VERSIONS:
- HTML 1.0 First version.
- HTML 2.0 Introduced forms.
- HTML 3.2 Included scripting languages.
- HTML 4.01 Introduced CSS support.
- XHTML Reformatted HTML as XML.
- HTML5 Latest version with new features like <video>, <audio>, <canvas>.
HTML5 FEATURES:
1. New semantic elements like <article>, <section>, <header>, <footer>.
2. Form controls date, time, calendar.
3. Multimedia support <audio>, <video>.
4. Graphics support <svg>, <canvas>.
5. APIs Offline storage, drag & drop, geolocation.
HTML ATTRIBUTES:
Attributes provide additional information about HTML elements. Example:
<input type="text" placeholder="Enter your email">
HTML FORM CONTROLS:
Includes elements like input, textarea, button, select.
HTML SEMANTIC ELEMENTS:
Provide meaning to the web content like <header>, <footer>, <article>, <nav>.
HTML DEPRECATED TAGS:
Some older tags are no longer supported in HTML5 like <font>, <center>.
DOCTYPE Declaration:
<!DOCTYPE html> is used to define the document type and HTML version.
End of the read