answersLogoWhite

0

What is HTML and XHTML?

Updated: 8/17/2019
User Avatar

Wiki User

15y ago

Best Answer

HTML stands for Hypertext Markup Language. It is a document format that structures text and data on the internet using elements. It is the most common language used for creating standard web pages. HTML elements are formed by tags, which, in a basic sense, are made up of a single word (or letter) enclosed by a lesser-than sign and a greater-than sign - respectively from left-to-right. For example: The body tag signifies the start of the content you want to display on a client's browser. To signify the end of an element, use an ending tag, which is just like a normal tag with a forward-slash before the tag name: All but few elements must be closed in HTML. Attributes can also be pushed into an element, allowing more options for that element alone. Some elements actually attributes that must be declared. The img tag is one of them; it displays in image, and requires a source URL - which you give as an attribute: "img" is the tag", and "src" is the attribute; it stands for "source." The equal sign that follows the attribute signifies that you are declaring its value; the value comes right afterwards. Most values are required to be enclosed in double-quote marks (") or single-quote marks ('); there is no difference between the two quote marks. XHTML stands for Extensible Hypertext Markup Language. It is a language that branches off of HTML, combining the use of XML syntax with HTML markup; all tags and attributes must be lowercase, all tags must be closed, and tags must be nested properly (as to not overlap one another in a shift). The requirements to comply with XHTML standards force the use of CSS in the place of specific tags to establish cross-browser compatibility on styles. These standards are issued by the W3C. XHTML is compatible with all (if not, most) modern browsers.

User Avatar

Wiki User

15y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is HTML and XHTML?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Is html a replacement for xhtml?

No. HTML existed before XHTML. XHTML combines XML and HTML, so it is an advancement on HTML.


Html and xHTML?

HTML and XHTML are two different languages used for web and application design. XHTML was a popular choice from about the year 2000, to 2011. HTML 5 is intended to replace XHTML. XHTML followed the basic rules of XML-based languages. HTML (both prior and since) do not.


Is xHTML is the successor to HTML?

No, XHTML is a parallel language to HTML. XHTML is a XML language definition where tags have similar meanings to corresponding HTML tags. A crude analogy would be that XHTML and HTML are half-brothers; Lot's of similarities but also distinct differences. The successor of HTML is HTML5, the successor of XHMTL is XHTML5.


What are the differences between htmlxmlsgml and xhtml?

basikly xhtml is a mics of html and xml. the difference in html and xhtml is that xhtml is a more strict on the syntax and defined as a xml document. xml is a self defined language... in short it is a strikter html in xml format...


What language was used to create XHTML?

HTML is in XHTML, some argue that XHTML is it's own markup


Is xHTML the same as HTML strict and what is a HTML frameset declaration?

Yes, XHTML is just the stricter form of HTML. It means that you have to close all the tags that you have opened.


XHTML is the combination of what?

XHTML is a combination of largely HTML and a small portion of XML.


What are some tips for writing XHTML?

# Write up multiple XHTML documents, attempting to not make any mistakes. # Write multiple HTML documents, and transform them into XHTML documents. # Browse forums or other online sources for HTML documents (or incorrect XHTML documents) that need help, markup-wise. # Take on projects involving XHTML coding.


Is there any reason to learn HTML before xhtml?

No, because they are essentially the same thing. HTML came before XHTML, and can be ill-formed but still acceptable. XHTML is just well formed HTML with the inclusion of a DTD at the very top.


Who controls HTML and XHTML today?

The World Wide Web Consortium, or the W3C. They set the standards and specifications of HTML and XHTML, and how it should be used.


What extensions are added to basic HTML documents?

.htm, .html, .xhtml


Why we you use xhtml?

XHTML is used as a stricter view of HTML. People who like to make the code clean and nice use XHTML.