Find more freelance jobs
|
<html> <head> ... </head> <body> ... </body> </html> You can read more about the XML syntax in our XML School. XHTML documents have some mandatory elements All XHTML documents must have a DOCTYPE declaration. The html, head and body elements must be present, and the title must be present in the head element. This is a minimum XHTML document template:: <!DOCTYPE html> <html> <head> <title>This is a Title</title> </head> <body> . Body text goes here . </body> </html> An XHTML document consists of three main parts: · the DOCTYPE · the Head · the Body The basic document structure is: <!DOCTYPE ...> <html ... > <head> ... </head> <body> ... </body> </html> This is a simple XHTML document: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/strict.dtd"> <html> <head> <title>simple document</title> </head> <body> <p>a simple paragraph</p> </body> </html> |