Table of Contents
html: Hypertext markup language, this is easy to understand, that is to say, the web pages we see are actually described through a hypertext markup language, which is html. Hypertext, beyond text, we have also seen, including pictures, videos, audios, programs
xhtml: Extensible Hypertext Markup Language, almost the same as html4.01. It is more rigorous and pure html, but xhtml is not html4.01. Check for yourself where the rigor is, where the purity is, and where the scalability is. This article aims to rectify the situation.
xml: Extensible Markup Language, designed to transmit data, is not predefined and needs to be defined by yourself. For example, you know that the < h1 > tag in html is the title, but there is no definition of which tag has what semantics in xml. What needs to be understood here is that xml does not replace html. Their design purposes are different.
Home Web Front-end HTML Tutorial The difference between html xhtml xml

The difference between html xhtml xml

Jan 16, 2017 pm 04:55 PM

For beginners of HTML, I believe they will be confused by html, xhtml, and xml, but I believe that as your knowledge and technology become more and more in-depth, you will slowly become clear about them. The editor has compiled some concepts of html, xhtml, and xml to help you understand these concepts. Without further ado, read on

html

html: Hypertext markup language, this is easy to understand, that is to say, the web pages we see are actually described through a hypertext markup language, which is html. Hypertext, beyond text, we have also seen, including pictures, videos, audios, programs

, etc.

xhtml

xhtml: Extensible Hypertext Markup Language, almost the same as html4.01. It is more rigorous and pure html, but xhtml is not html4.01. Check for yourself where the rigor is, where the purity is, and where the scalability is. This article aims to rectify the situation.

xhtml is used to replace html. It is a web specification and standard. When we write tags during the development process, we should write them in accordance with xhtml. Develop good label writing habits.

The main difference between xhtml and html is the xhtml requirement:

For correct nesting, all elements must turn off case sensitivity. We commonly use lowercase element attribute values ​​​​with double quotes, and cannot be replaced by id. name attribute

xml

xml: Extensible Markup Language, designed to transmit data, is not predefined and needs to be defined by yourself. For example, you know that the < h1 > tag in html is the title, but there is no definition of which tag has what semantics in xml. What needs to be understood here is that xml does not replace html. Their design purposes are different.

The difference between html, xhtml and xml:

1. Compared with html, xhtml documents have good and complete layout, which is reflected in two aspects: a. Elements must have end tags; b. , elements must be nested;

2. For html elements and attributes, xhtml must be lowercase, because xml is strictly case-sensitive,
  • and
  • are different tags ;

    3. The attribute value of xhtml must be in quotation marks; 4. xhtml does not support attribute minimization. What is attribute minimization?

    Correct: unminimized attributes

     

    Incorrect: minimized attributes

     < input checked>
     5. In xhtml, the name attribute is deprecated and will be deleted in future versions.

    It is said that the early webpage is written in HTML language, but it has three serious shortcomings:

    1. The coding is not standardized, the structure is confusing and bloated, and it requires an intelligent terminal to display it well. ;

     2. The performance and structure are confusing, which is not conducive to development and maintenance;

     3. More network devices cannot be used, such as mobile phones, PDAs, etc.;

    Therefore HTML Development is needed to solve this problem, so W3C formulated XHTML. XHTML is a bridge from HTML to XML. And xml is the trend of web development.

  • Statement of this Website
    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

    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

    AI Hentai Generator

    AI Hentai Generator

    Generate AI Hentai for free.

    Hot Tools

    Notepad++7.3.1

    Notepad++7.3.1

    Easy-to-use and free code editor

    SublimeText3 Chinese version

    SublimeText3 Chinese version

    Chinese version, very easy to use

    Zend Studio 13.0.1

    Zend Studio 13.0.1

    Powerful PHP integrated development environment

    Dreamweaver CS6

    Dreamweaver CS6

    Visual web development tools

    SublimeText3 Mac version

    SublimeText3 Mac version

    God-level code editing software (SublimeText3)

    Table Border in HTML Table Border in HTML Sep 04, 2024 pm 04:49 PM

    Guide to Table Border in HTML. Here we discuss multiple ways for defining table-border with examples of the Table Border in HTML.

    HTML margin-left HTML margin-left Sep 04, 2024 pm 04:48 PM

    Guide to HTML margin-left. Here we discuss a brief overview on HTML margin-left and its Examples along with its Code Implementation.

    Nested Table in HTML Nested Table in HTML Sep 04, 2024 pm 04:49 PM

    This is a guide to Nested Table in HTML. Here we discuss how to create a table within the table along with the respective examples.

    HTML Table Layout HTML Table Layout Sep 04, 2024 pm 04:54 PM

    Guide to HTML Table Layout. Here we discuss the Values of HTML Table Layout along with the examples and outputs n detail.

    HTML Input Placeholder HTML Input Placeholder Sep 04, 2024 pm 04:54 PM

    Guide to HTML Input Placeholder. Here we discuss the Examples of HTML Input Placeholder along with the codes and outputs.

    HTML Ordered List HTML Ordered List Sep 04, 2024 pm 04:43 PM

    Guide to the HTML Ordered List. Here we also discuss introduction of HTML Ordered list and types along with their example respectively

    Moving Text in HTML Moving Text in HTML Sep 04, 2024 pm 04:45 PM

    Guide to Moving Text in HTML. Here we discuss an introduction, how marquee tag work with syntax and examples to implement.

    HTML onclick Button HTML onclick Button Sep 04, 2024 pm 04:49 PM

    Guide to HTML onclick Button. Here we discuss their introduction, working, examples and onclick Event in various events respectively.

    See all articles