Introduction to XHTML Basics. XHTML is the language used to create and organize a web page:
XHTML is newer than, but built upon, the original HTML (HyperText Markup Language) platform.
XHTML has stricter rules and does not allow some elements formerly used in HTML.
One benefit of using XHTML instead of HTML is that it helps make web pages look identical in different browsers, such as Internet Explorer, Firefox, Chrome, Safari, Opera, etc.
XHTML defines and organizes the page content but does not format or style it. That is the job of CSS (Cascading Style Sheets), which we will learn later in this course.
Session 1: XHTML Basics
Learning Outcome
Describe the use of the head and body elements in an HTML document.
Describe these types of HTML tags: opening, closing, and empty.
An XHTML element is a component of an XHTML document. It is typically comprised of a start tag, an end tag, and some web content in between the start and end tag.
We’ve already learned about the <html>, <head>, <body>, <meta>, and <title> elements. Now let’s learn some elements that we’ll use to present actual text content on our web page:
The <table> element is a powerful tool for web designers:
Tables allow us to display information in a predictable and uniform fashion on a web page.
Tables are well suited for presenting data that conforms to rows and columns. Content in table cells is easy to format consistently.
In the past, tables were often used to lay out and organize an entire web page. This was a misuse of the <table> element, which should be used only to present specific information within a page’s overall content.