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
Preface: Use watermark effect in vue project, you...
Friends always ask me how to hide Linux processes...
Get the number of connections --- Get the maximum...
Table of contents 1. let keyword 1.1 Basic Usage ...
Table of contents Preface Enumerable properties I...
MySQL and connection related timeouts Preface: To...
Nginx is a powerful, high-performance web and rev...
This time let’s look at a navigation bar layout w...
User and Group Management 1. Basic concepts of us...
1. The three files /etc/hosts, /etc/resolv.conf a...
Table of contents 1. After downloading, unzip it ...
Achieve results Implementation Code html <div ...
Error message: ERROR 2002: Can't connect to l...
1. Basic syntax structure of HTML submit and bott...
This article introduces 5 ways to solve the 1px b...