XHTML three document type declarations

XHTML three document type declarations

XHTML defines three document type declarations.
The most commonly used is XHTML Transitional. <!DOCTYPE> is mandatory.
An XHTML document has three main parts: DOCTYPE Head Body
The basic document structure is this:
<!DOCTYPE ...><html><head><title>... </title></head><body> ... </body></html>
In an XHTML document, the document type declaration is always the first line. An XHTML Example Here is a simple (minimal) XHTML document:
<!DOCTYPE htmlPUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html><head><title>simple document</title></head><body><p>a simple paragraph</p></body></html>
A document type declaration defines the type of a document:
<!DOCTYPE htmlPUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
The rest of the document looks like this:
<html><head><title>simple document</title></head><body><p>a simple paragraph</p></body></html> 3 Document Type Declarations DTD specifies the syntax of web pages using Generalized Markup Language (SGML). General markup language applications such as HTML use DTD to specify the rules for tags applied to a particular document. These rules include a series of element and entity declarations. XHTML is described in detail in the Document Type Declaration, or DTD, of the Standard Generalized Markup Language (SGML). The XHTML DTD uses precise computer-readable language to describe the grammar and syntax of legal XHTML tags. There are three XHTML document types: STRICT TRANSITIONAL FRAMESET Three XML document types for XHTML 1.0
XHTML 1.0 specifies three XML document types to correspond to the three DTDs mentioned above. XHTML 1.0 Strict
<!DOCTYPE htmlPUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/ xhtml1-strict.dtd ">
Use when you want clean markup and avoid clutter in presentation. Please use with Cascading Style Sheets. XHTML 1.0 Transitional
<!DOCTYPE htmlPUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/ xhtml1-transitional.dtd ">
Use it when you need to take advantage of the presentation features of HTML and when you need to write XHTML for browsers that do not support Cascading Style Sheets. XHTML 1.0 Frameset
<!DOCTYPE htmlPUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/ xhtml1-frameset.dtd" >
Use in situations where you need to use HTML frames to split the browser window into two or more frames.

<<:  Detailed explanation of where the image pulled by docker is stored

>>:  mysql8.0.23 linux (centos7) installation complete and detailed tutorial

Recommend

Summary of several common logs in MySQL

Preface: In the MySQL system, there are many diff...

HTML displays ellipsis beyond the text... implemented through text-overflow

You need to apply CSS to div or span at the same t...

How to solve the problem of FileZilla_Server:425 Can't open data connection

When installing FileZilla Server on the server, t...

A must-read career plan for web design practitioners

Original article, please indicate the author and ...

Detailed explanation of how Node.js middleware works

Table of contents What is Express middleware? Req...

Implementation of VUE infinite level tree data structure display

Table of contents Component recursive call Using ...

Introduction to general_log log knowledge points in MySQL

The following operation demonstrations are all ba...

CSS3 realizes the effect of triangle continuous enlargement

1. CSS3 triangle continues to zoom in special eff...

Summary of methods for finding and deleting duplicate data in MySQL tables

Sometimes we save a lot of duplicate data in the ...

Summary of MySQL lock related knowledge

Locks in MySQL Locks are a means to resolve resou...

Detailed explanation of MySQL combined index method

For any DBMS, indexes are the most important fact...

Three ways to copy MySQL tables (summary)

Copy table structure and its data The following s...

WEB standard web page structure

Whether it is the background image or the text siz...

Detailed explanation of mysql record time-consuming sql example

mysql records time-consuming sql MySQL can record...