What use <! DOCTYPE>?

Possible duplicate:
HTML: What functionality! DOCTYPE

hi

I am an .asp web developer as a newbie,

I find many articles, but I will not get the full idea.

1. what is the use <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">?

2. Is there a need to use this on my classic asp page?

+3
source share
6 answers

DOCTYPE is not required, an optional web page element (not ASP, PHP, etc.) and helps the browser display and use the correct rendering mode.

The doctype declaration is not an HTML tag; This is a guide for the web browser about which version of the markup language the page is written in.

, , HTML (, -) .

<html>
   <head>
      // Everything here is to help the browser to display the correct design
   </head>

   <body>
      // Everything here will show in the user display
   </body>
</html>

<doctype>, , <html> ", , , "

, - ... ( ), , - , , : "Wazz'up", " ".

.


<doctype> , , 1990 , , <html>, <br> <br />, , , , <img alt="" src="" > <img alt="" src="" />

HTML XHTML, XML, XHTML , , , <br/>.

, <doctype>:)

-3

, html . , xhtml strict, /" > , .

, , .

: doctype xhtml . PHP, , doctype ASP.

+4

Doctype , html .

http://www.w3schools.com/tags/tag_doctype.asp

, HTML-. doctype:

  • SEO- , html-, , .

  • .

  • , - .

Doctype , :

client: javascript/css/html

: php/asp/asp.net/java

, . .

+3

, doctype - HTML. , , , , . doctype, ( ) .

, , , : HTML5 doctype:

<!DOCTYPE html>

, - - doctype; . , .

+2

DOCTYPE . -, , DOCTYPE , . , , , - .

"" , "", - , . , -. , , , DOCTYPE -.

0

html, , html , asp html.

  • different doctrines can give you different results in your html layouts. refer to: http://www.w3schools.com/tags/tag_doctype.asp

  • you will need it. html pages without doctype will by default become obsolete in school quirks, which can hardly work later.

hope this helps!

0
source

Source: https://habr.com/ru/post/1769500/


All Articles