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
I had always wanted to learn Kubernetes because i...
Method 1: Use the lsb_release utility The lsb_rel...
As shown below: Mainly execute authorization comm...
Table of contents 1. View hook 1. Things to note ...
1. Achieve the effect 2 Knowledge Points 2.1 <...
Recently, I used html-webapck-plugin plug-in for ...
A word in advance: Suddenly I received a task to ...
Preface: Basically, whether it is for our own use...
Table of contents 3 ways to deploy projects with ...
Preface I watched web.dev's 2020 three-day li...
Table of contents 1. Test Data 2. The inconvenien...
Preface After the project is migrated to .net cor...
1. MySQL's own stress testing tool Mysqlslap ...
Table of contents 1. Use scripts to encrypt TLS f...
Table of contents 1: Front-end handwritten paging...