Previous
Next


Simple Structure of HTML

<!DOCTYPE html>
<html>
   <head>
      <title>Page Title</title>
   </head>
<body>

   <h1>My First Heading</h1>
<p>My first paragraph.</p>

</body>
</html>

The HTML tags

HTML main delimeters (<, >, /) ke ander tags use kiye jate hai, jisse browser ko inform kiya jata hai ki wo iske ander ki information ko read kare. HTML main start tag or end tag use hota hai jiske ander elements dale jate hai.
<tagname> Content to display </tagname>

<!Doctype html>
Ye tag browser ko samajhane ke liye use kiya jata hai. Is tag se browser ko pta chalta hai ki ye html ka konsa version hai. Yaha maine <Doctype html> use kiya hai jo ki HTML5 ke liye use kiya jata hai. Is tag ka use <html> se pahle kiya jata hai. Is tag ka use karna bahut jaruri hai kyunki isse browser ko version ka pta chalta hai.

<html>
<html> tag ke ander saare content use kiye jate hai.

<head>
Ye tag broowser ko general information deta hai. Is tag ke ander metadata information di jati hai.

<title>
Ye tag page ko title deta hai.
<title> Page Title Here </title>

<body>
Ye html ka main tag hai. Iske ander sare contents ate hai jaise ki text, image, hyperlink etc.

A simple page in HTML

Niche diye gye codes ko copy kare or notepad main paste kare or jo aapka favourite text editor hai usme paste kar de.

<!DOCTYPE html>
<html>
   <head>
      <title>This is my first page</title>
   </head>
<body>

   <h1>My First Heading</h1>
<p>My first paragraph.</p>

</body>
</html>

Try Kare


Ab is file ko kisi naam se save kar de or naam ke last main .html jarur likh de. Kyunki ye file ki extension hai jisse aapka pc understand kar sake ki ye html file hai.


Previous
Next


Still have any doubt you can ask here. (You must be login to your facebook account to comment here.)