पहला HTML page
First HTML page
सभी HTML file एक common structure को follow करती है , हर HTML file में सभी basic structure को use करना अनिवार्य है।
हम वही basic structure से आज पहला page बनाएंगे !
तो चलो start करते है
1 . text editor चालू करें ।
2 . HTML coding लिखें ।
3 . file को .html extension से save करें ।
4 . file को किसी भी browser में ओपन करे।
HTML का basic structure निचे बताया जा रहा है।
यहाँ ऊपर आपको HTML का सामान्य structure दिखाया है, जो कि हर page में उपयोग होगा !
Explanation
Html tag "<html>" :- Html एक प्रारंभिक tag है और हर HTML file की starting और ending <html> tag से होनी चाहिए जिस मे हम सारा कंटैंट लिखते है
1. head
2. body
<html>
</html>
1 . head tag "<head>":-इस tag में webpage से related scripts और styles define की जाती है।
I. HTML tag के बाद <head> tag define किया जाता है !
<head> tag के अंदर आप web page का title , <title> tag द्वारा define करते है !
<html>
<head>
<title>
......
</title>
</head>
</html>
II. title tag "<title>":- से Webpage का title , browser में menu बार के ऊपर show किया जाता है।
जो की निचे दिखाया गया हे !
2 . Body tag "<body>":- इस tag में webpage का मुख्य content define किया जाता है। body tag head tag के बाद define किया जाता है।
<html>
<head>
... ...
</head>
<body>
... ...
</body>
</html>
Comments