Difference between HTML and XHTML 3. XHTML elements must be lowercase 4. XHTML documents must have a root element 5. XHTML attribute names must be lowercase, attribute values must be quoted, and attributes cannot be abbreviated. For example: <input checked="checked" /> Note: You should add an extra space before the "/" symbol to make your XHTML compatible with modern browsers. 7. Language attribute (lang) The lang attribute is applied to almost all XHTML elements. It defines the type of language used by the content inside the element. If you use the lang attribute on an element, you must add an additional xml:lang, like this: <div lang="no" xml:lang="no">Heia Norge!</div> Three XML document types for XHTML 1.0 XML/HTML CodeCopy content to clipboard
Use when: You want clean markup and avoid clutter in presentation. Please use with Cascading Style Sheets. XML/HTML CodeCopy content to clipboard
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. XML/HTML CodeCopy content to clipboard
Use in this case: When you need to use HTML frames to split the browser window into two or more frames. HTML4 vs HTML5 HTML5 is very popular recently. Let's take a look at some differences between HTML5 tags and HTML4 tags: HTML5 focuses on content and structure, not on performance <header> 2. Declaration and label: (1) Syntax tags: a. Tags that do not allow writing end characters: area, basebr, col, command, Embed, hr, img, input, keygen, link, meta, param, source, Track, wbr (2) Add new tags: The <article> tag defines an article HTML5 Simple Example XML/HTML CodeCopy content to clipboard
|
<<: A brief introduction to MySQL functions
>>: Discussion on default margin and padding values of common elements
MySQL is a relatively easy-to-use relational data...
Table of contents 1. Problem Description 2. Cause...
The so-called three-column adaptive layout means ...
This article shares the specific code of JavaScri...
Prepare a CentOS6 installation disk (any version)...
Table of contents 1. Routing animation 2. Group Q...
Before webpack packaging, we must ensure that the...
Table of contents 1. The magical extension operat...
How to define and use: Use the slot tag definitio...
I have read countless my.cnf configurations on th...
background The amount of new data in the business...
As shown below: SELECT count(DISTINCT(a.rect_id))...
It is very convenient to connect to a remote serv...
MySQL official website: https://www.mysql.com/dow...
1. Use the installation package to install MySQL ...