Introduction to HTML
HTML ka full form hai HyperText Markup Language. Yeh ek markup language hai jo web pages ke structure ko define karne ke liye use hoti hai. jab aap website bnate hai, to HTML ka role basic framework create karna hota hai, jaise ki text, images, links, buttons, forms, etc.
- Content Structuring: Web pages ka content organize karna.
- Web Page Representation: HTML content ko browser ke liye interpret karna.
- User Interaction: Users ko interact karna ke liye input fields aur buttons provide karna.
History of html
HTML ki history ki baat kre to html ko Tim Berners-Lee ne 1991 me bnaya tha. html ka latest version abhi HTML5 chal rha hai.
HTML Document Structure
HTML document ka ek fixed structure hota hai, jise aapko follow karna hota hai. Yeh structure kuch basic tags se bana hota hai, jaise ki <html>, <head>, <title>, <body> etc.
<!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> <h1>This is a Heading</h1> <p>This is a paragraph.</p> </body> </html>
Explanation of HTML Boilerplate Code
<!DOCTYPE html>: Ye document type aur version define karta hai.
<html>: Ye tag document ka root element define karta hai.
<head>: Ye tag document ke head section ko define karta hai.
<title>: Ye tag document ka title define karta hai.
<body>: Ye tag document ka body content define karta hai.
<h1>: Ye tag heading define karta hai.
<p>: Ye tag paragraph define karta hai.
