Today there are many browser technologies, which can run on computers, phones or other small devices. These small devices often lack the resources or the power to translate 'bad' markups.
XHTML is a markup language in which documents must be properly marked, developed by combining the power of both HTML and XML.
Important differences between HTML and XHTML
Text structure
XHTML DOCTYPE is required
The xmlns attribute in the tag is required.
Tags ,, and is required.
Elements in XHTML
Elements in XHTML must be properly nested.
Elements in XHTML must always be closed.
Elements in XHTML must be lowercase.
Elements in XHTML must have a root element.
Properties in XHTML
Attribute names must be in lowercase.
Attribute value must be in quotation marks.
It is forbidden to simplify attributes.
is required
XHTML text must contain XHTML DOCTYPE declaration.
Must have elements ,, and , xmlns attribute in the tag must specify xml space for text. The example below shows XHTML text with minimum required tags.
this article explains how to change the font color in html documents. although the html style tag is obsolete in html5, you can use css to color content on an html page. if you use an older version of html, you can use the html text color tag as needed.
learning html is not difficult, but when running it in the browser, errors often occur. here are common html errors and how to handle them for better web development.
this tutorial explains how to insert spaces and line breaks in html. because no matter how many times you type a space, html will display a space so to insert more than one space, you will need to use the html tag.
when you visit the website, you will often see images of all sizes and positions on the page. images in html web pages will help to enrich the content as well as increase the aesthetics of the page.