Online कंप्यूटर कोर्स करने के लिए अपने Mobile में Play Store से हमारा App Download करें। App का नाम Vinaytips है।
Vinaytips App: Download Now

Call / Whatsapp: +91 9650597419 (Vinay Sir)

Online DCA Course Live Class
Join Now

Online Advance Excel Training Live Class
Join Now

Please Subscribe Our YouTube Channel Subscribe Now

Please Check Computer Demo Notes Click Here

1. Basic Computer Notes (Hindi)
...............Buy Now...............

2. Basic Computer Notes (English)
...............Buy Now...............

3. MS Word Notes (Hindi)
...............Buy Now...............

4. MS Word Notes (English)
...............Buy Now...............

5. MS Excel Notes (Hindi)
...............Buy Now...............

6. MS Excel Notes (English)
...............Buy Now...............

7. MS Power Point Notes (Hindi)
...............Buy Now...............

8. MS Power Point Notes (English)
...............Buy Now...............

9. Internet Notes (Hindi)
...............Buy Now...............

10. Internet Notes (English)
...............Buy Now...............

11. Tally Prime Notes (Hindi)
...............Buy Now...............

12. Tally Prime Notes (English)
...............Buy Now...............

13. HTML Notes (Hindi)
...............Buy Now...............

14. HTML Notes(English)
...............Buy Now...............

15. CSS Notes (Hindi)
...............Buy Now...............

16. CSS Notes (English)
...............Buy Now...............

17. Java Script Notes (Hindi)
...............Buy Now...............

18. Java Script Notes (English)
...............Buy Now...............

19. Computer Repairing Notes (Hindi)
...............Buy Now...............

3. DOCTYPE Declaration की पूरी जानकारी हिंदी में

Introduction to <!DOCTYPE> Declaration

Hello Friends!
मै विनय Concept Computer Center से.........  


The DOCTYPE (Document Type) declaration defines this document to be HTML5.




Doctype Declaration का उपयोग हम ये बताने के लिए करते है कि हमने HTML की कौन सी version में coding की है। जैसे HTML 4 में, XHTML में या HTML 5 में। सारे versions  में  अलग अलग प्रकार से doctype declarations किया जाता है यानि कि HTML4 में अलग प्रकार से XHTML में अलग प्रकार से और HTML5 में अलग प्रकार से। 

Doctype declaration syntax in HTML 4

<!DOCTYPE HTML PUBLIC "//W3C//DTDHTML4.01 Transitional//EN" 
"http://www.w3.org/TR/TR/html4/loose.dtd">

ये लिखने का मतलब है कि आपने सिर्फ HTML 4 version में coding किया है। 

Doctype declaration syntax in XHTML  <!DOCTYPE HTML PUBLIC "-//W3C //DTD HTML 4.01//EN"
"http://www.w3.org /TR /html4/strict.dtd">

ये लिखने का मतलब है कि आपने HTML 4 और XHTML  दोनों versions में coding किया है। 

Doctype declaration syntax in HTML 5 

<!Doctype html>

ये लिखने का मतलब है कि आपने coding तीनो versions में (HTML 4, XHTML, HTML 5) किया है। 

आप coding किसी भी version में करे लेकिन doctype declaration HTML 5 में ही करे क्योंकि ऐसा करने से आप HTML 4, XHTML और HTML 5 के सभी tags और features का लाभ उठा पाएंगे। 

Complete structure of HTML 4 with doctype declaration 

<!DOCTYPE html>
<html>
<head>
<title>
title contents here 
</title>
</head>
<body>
webpage contents  here
</body>   
</html>     

HTML में coding करने से पहले  <!DOCTYPE html>  ये जरुर type करे ताकि आप HTML के सारे versions का लाभ उठा सके। 

<!DOCTYPE html> coding करने से पहले क्यों type करते है?

Ans.  coding करने के बाद जब हम website को server पर upload करते है तो server हमारे HTML code को read करने से पहले देखता है कि आपने HTML के कौन से version में coding की है HTML 4 में , HTML5 में या XHTML में। तो जब भी हम HTMLकी coding करते है। सबसे पहले यह define करते है कि किस version में हम coding करने जा रहे है। 
<!DOCTYPE> declaration करने से ही web server को पता चलता है कि आपने coding किस version में किया है और उसके बाद website, internet पर show होता है।    

Thank you, Have a great day  
Enjoy Our  HTML Notes in Hindi

ADVANCE LEVEL WEBSITE DESIGN COURSE

Fees Only : 1500/- Month
Call / Whatsapp / Telegram : 9650597419
DAILY 2 Hrs. Practical Class + 2 Hrs. Practice 




CONCEPT COMPUTER EDUCATION, GURUGRAM, HARYANA, INDIA





Post a Comment

0 Comments