HTML 页面开头doctype应该大写还是小写?
这些写法都是有效的,但是哪种才是规范推荐使用的
回复内容:
HTML5 中不区分大小写!HTML5/syntax
一个DOCTYPE必须包含以下部分,并严格按照顺序出现:
一个ASCII字符串",大小写不敏感。



腾讯的。

京东的。
所以,你看着办吧。
题主你让我分心了,阿弥陀佛,工作工作。 在XHTML标准下,所有标签名必须小写。这个也是个标签吧? html 对大小写是不敏感的,不管是 doctype 还是 DOCTYPE 都是可以的,甚至 p 和 P,h1 和 H1 也都可以,哪个习惯就用哪个。 html5(包括4)不区分大小写,但是建议小写,因为xhtml是要求小写的
HTML Tip: Use Lowercase Tagshttp://www.w3schools.com/html/html_elements.aspHTML tags are not case sensitive:
means the same as
.
The HTML5 standard does not require lowercase tags, but W3C recommends lowercase in HTML4, and demands lowercase for stricter document types like XHTML.
至于doctype,我是依照建议小写的……

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Guide to Table Border in HTML. Here we discuss multiple ways for defining table-border with examples of the Table Border in HTML.

This is a guide to Nested Table in HTML. Here we discuss how to create a table within the table along with the respective examples.

Guide to HTML margin-left. Here we discuss a brief overview on HTML margin-left and its Examples along with its Code Implementation.

Guide to HTML Table Layout. Here we discuss the Values of HTML Table Layout along with the examples and outputs n detail.

Guide to Moving Text in HTML. Here we discuss an introduction, how marquee tag work with syntax and examples to implement.

This tutorial demonstrates how to efficiently process XML documents using PHP. XML (eXtensible Markup Language) is a versatile text-based markup language designed for both human readability and machine parsing. It's commonly used for data storage an

Guide to the HTML Ordered List. Here we also discuss introduction of HTML Ordered list and types along with their example respectively

Guide to HTML onclick Button. Here we discuss their introduction, working, examples and onclick Event in various events respectively.
