What does exclamation point stand for in HTML in constructs like DOCTYPE and comments?

后端 未结 4 1647
灰色年华
灰色年华 2020-12-07 01:20

I am curious about the syntax of the doctype and comment tags...

Why the exclamation point? What is it called, what does it mean/do?

I have read through the

4条回答
  •  醉酒成梦
    2020-12-07 01:32

    The ! is used for comments () and to define the DOCTYPE () of the HTML document. The DOCTYPE describe some characteristics of the document such as the root of the XML/XHTML/HTML file (in HTML usually is ), a DTD, a Public Identifier and other subset declarations.

提交回复
热议问题