Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

XHTML

From Simple English Wikipedia, the free encyclopedia
XHTML
Filename extension.xhtml, .xht,
.xml, .html, .htm
Internet media typeapplication/xhtml+xml
Developed byWorld Wide Web Consortium
Initial release26 January 2000 (2000-01-26)
Latest release
5.0
(28 October 2014; 10 years ago (2014-10-28))
Type of formatMarkup language
Extended fromXML,HTML
StandardW3C HTML5 (Recommendation)
Open format?Yes

XHTML stands foreXtensible HyperText Markup Language. It is markup used to designwebsites andwebpages.

XHTML is much more strict than ordinaryHTML, and is based on bothXML and HTML. Due to the lax nature of HTML, differentweb browsers can sometimes display websites incorrectly since there is more than one way to interpret poorly written HTML. The strict and formal nature of XHTML, once fully adopted will allow forweb browsers to display the same page correctly between them. Proper XHTML is also easier to read for humans.

For example, the below code shows one of the differences between HTML and XHTML:

Incorrect, HTML version:

<br>

Correct, XHTML version:

<br/>

The line break tag in HTML does not have a closing tag, you just type it once and it creates a line break. In XHTML the rule is that tags that do not have an closing tag must close themselves within the initial tag. These tags are called "empty tags." Another empty tag is<hr /> which inserts a "horizontal rule" or dividing line.

JavaScript Differences

[change |change source]

In XHTML, usinginnerHTML is not "allowed". XHTML also should not be used together with the JavaScriptdocument.write command.

Related pages

[change |change source]


Thisshort article abouttechnology can be made longer. You can help Wikipedia byadding to it.
Retrieved from "https://simple.wikipedia.org/w/index.php?title=XHTML&oldid=8761977"
Categories:
Hidden category:

[8]ページ先頭

©2009-2025 Movatter.jp