ابدأ بالتواصل مع الأشخاص وتبادل معارفك المهنية

أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.

متابعة

What do you know about DOCTYPE in webpages?

Can you tell what each doctype used for? and are doctypes used in HTML5?

user-image
تم إضافة السؤال من قبل Fadi Alkhateeb , Senior Front End Developer , NexTwo
تاريخ النشر: 2013/11/21
Sandhya Binoy
من قبل Sandhya Binoy , Software Professional , Karrox technologies

DOCTYPE Means DTD(Document Type Declaration).

By using DOCTYPE declarations,you are telling the web browser what version of (X)HTML

your webpage should be displayed in.

<!doctype html> used in html5

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

HTML4.01 Strict DOCTYPE removes all the deprecated tags from the specificstion.

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

HTML4.01 Transitional DTD is the most popular one.

 

 

Ajith Fernandez
من قبل Ajith Fernandez , Software Engineer , Nayasoft Solutions Pvt.ltd

The DOCTYPE declaration is not an HTML tag; it is an instruction to the web browser about what version of HTML the page is written in.

Shreyas Mulay
من قبل Shreyas Mulay , Software Engineer , Nextlevl Reail Technologies Pvt Ltd

DOCTYPE stands for Document Type Definition is a tag in a web page. It tells the browser how to render the page in standards compliant mode.

 

Yes, It is used in HTML5 but it is useless but it has to be used.

المزيد من الأسئلة المماثلة

هل تحتاج لمساعدة في كتابة سيرة ذاتية تحتوي على الكلمات الدلالية التي يبحث عنها أصحاب العمل؟