Professional Documents
Culture Documents
(Integrated)
Module 3: CSS
XHTML
• XHTML stands for Extensible Hypertext Markup Language
• XML is a markup language where all documents must be marked
up correctly (be "well-formed").
• XHTML was developed to make HTML more extensible and
flexible to work with other data formats (such as XML
(XML stands for extensible Markup Language. XML was
designed to store and transport data. XML was designed to be
both human- and machine-readable)). In addition, browsers
ignore errors in HTML pages, and try to display the website even
if it has some errors in the markup. So, XHTML comes with a
much stricter error handling.
Output:
The <title> and </title> tag pair specifies the title of the document, which
generally appears in the title bar of the Web browser.
A comment is specified by <!-- -->, allowing page authors to provide notes for
future reference.
The <h1> and </h1> header tag pair indicates a headline specifying some
important information.
The <hr> tag, which has a self-identifying end tag (<hr />) under XHTML,
inserts a horizontal rule, or bar, across the screen.
The <p> and </p> paragraph tag pair indicates a paragraph of text.
A special character is inserted using a named entity (♥), which in this
case inserts a heart dingbat character into the text.
The <em> and </em> tag pair surrounds a small piece of text to emphasize
which a browser typically renders in italics.
Basic Syntax
• Elements are defined by tags (markers)
– Tag format:
• Opening tag: <name>
• Closing tag: </name>
– The opening tag and its closing tag together specify a container for the content they enclose
<B>Go boldly</B>
<B>Go boldly</b>
<b>Go boldly</B>
<b>Go boldly</b>