Monday, 23 September 2013

Simple XHTML 1.0 Strict program with 5 tags (html,head,title,body,p)

This program below shows the usage of basic 5 tags/XHTML elements
html | head | title | body | p

1:  <?xml version = "1.0" encoding="utf-8"?>  
2:  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">  
3:  <html xmlns = "http://www.w3.org/1999/xhtml">  
4:  <head>  
5:  <title> This is the title of the page</title>  
6:  </head>  
7:  <body>  
8:  <p>  
9:  Hello Web!  
10:  </p>  
11:  </body>  
12:  </html>  
Post a Comment