search
HomeWeb Front-endHTML Tutorial[About W3C standards] Is it necessary to strictly adhere to the DTD standards to which elements should be applied? _html/css_WEB-ITnose

Source of the problem:
In the process of learning, I found that HTML4.01, But during the practice, when I learned to write the surface layer of a website, I found that it can be used normally. For example, the

tag, html5, XHTML1.0 and HTML4.01 Strict are not supported, but After writing it, it can still be displayed in the center normally.


My question:
(1) http://www.w3school.com.cn/tags/html_ref_dtd.asp
Such a standard, here What does it mean to say "no" or "no"? What exactly does it mean? Does it mean unavailable? (Looks like not)
(2) Do the standards listed by W3C (such as the standard at the end of the link) must be strictly followed in actual projects? What problems will occur if it is violated? Give me an example to clarify. Thank you!


Reply to discussion (solution)

First of all, the information on this website is not completely accurate.

Secondly, H5 was released from 08 It has been continuously improved since then and was completed in 2014.
This final standard specification of W3C has no direct relationship with us ordinary developers
but is related to the product versions launched by major browser manufacturers.
We are working on these browsers again.
/**************The above is all nonsense*****************/

Question 1.NO is, new element, deleted element.
Question 2. Must follow strict /Mixed mode, it depends on the project, it is actually not that exaggerated.
Now the development project is directly

/**************The following is also nonsense*******************/
In actual development We rarely use NO tags.
tags like , are never used at all.
If you want to use some new familiar tags like

Reply to webyellow: (1) Reply to the previous nonsense: In other words, these standards promoted by W3C (such as the link) are Provided to browser manufacturers as an adoptable specification when making browsers? As developers, we should understand the specifications of each browser rather than these, right?

(2) Reply to the next nonsense paragraph: (off-topic) I am still a beginner and have no work experience. After learning HTML CSS After that, let’s go into JS learning and then learn H5 C3, right? Or learn JS later? At present, I have decided to choose the former one. What are the advantages and disadvantages of the two learning paths? (I found that H5 is basically a variety of functional tags used with JS. It will be confusing to learn without JS)

(3) Reply to stuffing: How do you define and understand " Strict/mixed mode?
----------------------------------------------- -------------------------------------------------- --------
I have enough problems and need to keep learning!

It is best not to use it because it may be abandoned. It is recommended to follow the standard, although the effect can be achieved.

1. There is no so-called standard in browsers, only support for the standard.

2. Personally, I don’t think it is necessary. Just learn whatever you like and what you think you need. Instead of dictating what you should learn, it is better to study some small things.
For example, what happens when a block element uses float? Wait
Life is very tolerant of mistakes, just follow your feelings.
3. What should I do now? It is to follow the leadership's arrangements.

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
HTML in Action: Examples of Website StructureHTML in Action: Examples of Website StructureMay 05, 2025 am 12:03 AM

HTML is used to build websites with clear structure. 1) Use tags such as, and define the website structure. 2) Examples show the structure of blogs and e-commerce websites. 3) Avoid common mistakes such as incorrect label nesting. 4) Optimize performance by reducing HTTP requests and using semantic tags.

How do you insert an image into an HTML page?How do you insert an image into an HTML page?May 04, 2025 am 12:02 AM

ToinsertanimageintoanHTMLpage,usethetagwithsrcandaltattributes.1)UsealttextforaccessibilityandSEO.2)Implementsrcsetforresponsiveimages.3)Applylazyloadingwithloading="lazy"tooptimizeperformance.4)OptimizeimagesusingtoolslikeImageOptimtoreduc

HTML's Purpose: Enabling Web Browsers to Display ContentHTML's Purpose: Enabling Web Browsers to Display ContentMay 03, 2025 am 12:03 AM

The core purpose of HTML is to enable the browser to understand and display web content. 1. HTML defines the web page structure and content through tags, such as, to, etc. 2. HTML5 enhances multimedia support and introduces and tags. 3.HTML provides form elements to support user interaction. 4. Optimizing HTML code can improve web page performance, such as reducing HTTP requests and compressing HTML.

Why are HTML tags important for web development?Why are HTML tags important for web development?May 02, 2025 am 12:03 AM

HTMLtagsareessentialforwebdevelopmentastheystructureandenhancewebpages.1)Theydefinelayout,semantics,andinteractivity.2)SemantictagsimproveaccessibilityandSEO.3)Properuseoftagscanoptimizeperformanceandensurecross-browsercompatibility.

Explain the importance of using consistent coding style for HTML tags and attributes.Explain the importance of using consistent coding style for HTML tags and attributes.May 01, 2025 am 12:01 AM

A consistent HTML encoding style is important because it improves the readability, maintainability and efficiency of the code. 1) Use lowercase tags and attributes, 2) Keep consistent indentation, 3) Select and stick to single or double quotes, 4) Avoid mixing different styles in projects, 5) Use automation tools such as Prettier or ESLint to ensure consistency in styles.

How to implement multi-project carousel in Bootstrap 4?How to implement multi-project carousel in Bootstrap 4?Apr 30, 2025 pm 03:24 PM

Solution to implement multi-project carousel in Bootstrap4 Implementing multi-project carousel in Bootstrap4 is not an easy task. Although Bootstrap...

How does deepseek official website achieve the effect of penetrating mouse scroll event?How does deepseek official website achieve the effect of penetrating mouse scroll event?Apr 30, 2025 pm 03:21 PM

How to achieve the effect of mouse scrolling event penetration? When we browse the web, we often encounter some special interaction designs. For example, on deepseek official website, �...

How to modify the playback control style of HTML videoHow to modify the playback control style of HTML videoApr 30, 2025 pm 03:18 PM

The default playback control style of HTML video cannot be modified directly through CSS. 1. Create custom controls using JavaScript. 2. Beautify these controls through CSS. 3. Consider compatibility, user experience and performance, using libraries such as Video.js or Plyr can simplify the process.

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools