Home
XHTML
CSS
PHP
MySQL
SEO
JavaScript
Computer Basics
Number Systems
LINUX


XHTML Tutorials

XHTML | Tags | Symbols | Lists | Links | Images | Contact Forms | Declaration

XHTML is the standard language for building the structure of a webpage. An XHTML file is any plain text file named with a .html extension. XHTML is standard to all webpages. All other languages or programs are added as plugins.

Any file named index.html is the default file in a root directory and opens automatically when the website is called in a browser. An XHTML file is opened in both a text editor and browser while editing. The file is edited in the text editor, saved, then refreshed in the browser to activate the changes.

Opening and closing tags declare the individual elements that make up the structure of a webpage. Each tag declares a unique function. Four sets of tags are common to all webpages. The <html> and </html> tags declare the XHTML file. The <head> and </head> tags declare the header content. The <title> and </title> tags declare the title of the webpage, coded within the header content. The <body> and </body> tags declare the actual content the viewer sees in the browser...

<html>
<head>
<title>Title of Webpage</title>
</head>
<body>

Content here displays in the browser...

</body>
</html>

The output to the browser is...

Content here displays in the browser...


The title bar on top of the browser window outputs as...

Title of Webpage




Comments can be added in XHTML for notes or reminders. Comments are visible in the source code, but not the browser...

<html>
<head>
<title>Title of Webpage</title>
</head>
<body>

<!-- This is how to code a single line
     or multiple line comment in XHTML -->

</body>
</html>


For debugging, XHTML can be validated at validator.w3.org.




SEO Vancouver, Washington
SEO Portland, Oregon
Website Design Vancouver, Washington