XHTML means Extensible Hypertext Markup Language .

If you are looking to be a web developer you must have basic knowlege of xhtml ,css and php .

or

If you have a wordpress blog and you do not want to pay heavy money to cutomize your wordpress then you must have the basic knowlege of xhtml ,css and php because these three things make a wordpress blog .

I am starting a series of posts on XHTML and CSS and the first chapter of this series is ” how to write a basic xhtml page ” . Lets start……….

1 OPEN THE NOTEPAD

2 TYPE THE DOCUMENT TYPE DECLARATION LIKE THIS

<?xml version=”1.0″ encoding=”UTF-8″ ?>
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”>

YOU CAN COPY THIS CODE FROM ANY XHTML PAGE

3  IN NEXT LINE TYPE THE HTML OPENING TAG <

4 TYPE XMLNS ATTRIBUTE LIKE THIS…….

<html xmlns=”http://www.w3.org/1999/xhtml”>

5  TYPE <head>  (this is the opening head tag )

6 TYPE <title >my page title</title>  (opening and closing title tag)

7 TYPE AGAIN </head>  (this is the closing head tag )

8 NOW ADD THE OPENING BODY TAG <body>

9 NOW ADD THE CLOSING BODY TAG </body>

10 FINALLY ADD THE CLOSING HTML TAG </html>

11 SAVE THE FILE AS HTML AND TEST IT IN BROWSER

YOUR DOCUMENT WILL BE LOOKED LIKE THIS

HOW TO WRITE A BASIC XHTML PAGE

Leave a Reply

You must be logged in to post a comment.