XHTML Tutorial

Learn XHTML Tutorial This XHTML tutorial helps beginners and professionals to learn XHTML easily. XHTML Example with Online Editor We have given online editor option with each XHTML example. So, you can edit any example and see the changed output. Prerequisite To learn XHTML, you must have the knowledge of computer fundamentals only. Audience This XHTML tutorial …

Read moreXHTML Tutorial

XHTML Introduction

XHTML stands for EXtensible HyperText Markup Language. It is newest version of HTML and developed by World Wide Web Consortium (W3C). XHTML is almost similar to HTML but is stricter than HTML in syntax and case sensitivity. It is supported by all major browsers including firefox, chrome etc. XHTML 1.0 is the first document type in the XHTML family. File …

Read moreXHTML Introduction

Why XHTML?

XHTML is used to make HTML more extensible and increase interoperability with other data formats. XHTML Advantages Reduce incompatibility between browsers Creates a standard that can be used on a variety of devices without changes Bad HTML Example

HTML code works fine in most of the browsers, but code does not follow the HTML rules. …

Read moreWhy XHTML?

XHTML VS HTML

XHTML is different from HTML and has certain rules that are divided into three parts: Changes in Document Structure Changes in XHTML Tags Changes in XHTML Attributes Changes in Document Structure XHTML documents must have a DOCTYPE These tags (<html>,<head>,<title> and <body>) are mandatory with their closing tags in XHTML xmlns attribute is required in …

Read moreXHTML VS HTML

XHTML Syntax

XHTML Syntax is similar to the HTML and all the elements that are valid in HTML also valid in XHTML. XHTML is stricter than HTML in syntax and case sensitivity. Following are the important points that we need to remember when we are writing a new XHTML document: XHTML documents must have a DOCTYPE XHTML …

Read moreXHTML Syntax

XHTML Events

When we visit a website, we do several things like click on text, images and hyperlinks etc. These are examples of what JavaScript calls events. We can write our event handlers in JavaScript or VBScript and can specify these event handlers as a value of event tag attribute. In XHTML Event handler, we can associate …

Read moreXHTML Events

XHTML DOCTYPE

DOCTYPE is an instruction that associates to a particular SGML or XML (like a webpage) document with a DTD(Document Type Definition). DOCTYPE is the first statement of the XHTML document. DTD helps in describing the rules for the markup languages, so that the browsers render the content correctly. Three types of Doctypes available in XHTML are: Strict Transitional Frameset Transitional …

Read moreXHTML DOCTYPE

XHTML Attributes

Some standard XHTML attributes that is associated to all the XHTML tags. XHTML attributes are divided into three parts: Core Attributes Language Attributes Microsoft Proprietary Attributes Core Attributes These attributes are not valid in base, head, html, meta, param, script, style, and title elements. Attribute Value Description class class_rule or style_rule Specifies the class of the element …

Read moreXHTML Attributes