![]() |
|
![]() |
||
![]() |
![]() |
|
XHTML BasicsIn this section we'll cover the XHTML basics - these important concepts can often account for more then half of the work a Web developer does in making a Web page! The XHTML FoundationXHTML pages can be divided into two sections: the head and the body. The head section is where you define the title of your page, write scripts, associate stylesheets, and include meta information which describes the contents of your page to search engines, etc. The body of your XHTML document encloses the content of your page, i.e. the stuff that your visitors will see and read, like graphics and text. Here's what the XHTML code looks like: Code Sample: Let's take a moment to review the basic syntax for the XHTML foundation. Creating the XHTML <head> element
Creating the XHTML <body> element
Creating the XHTML <title> elementAll XHTML pages require a <title> element - we recommend that you choose something short and descriptive, since in most browsers, the title is rendered in the browser's title bar, which has limited space. Here is an example of the <title> element: Code Sample:
To create a title element:
HTML TutorialsFind a great HTML tutorial and build your own web site. Find out how affordable online learning can be, and expand your horizons.
|
|
||||||||||||||||||||||||