How to create a Hello World page in XHTML?

DWQA QuestionsCategory: Web Design HTMLHow to create a Hello World page in XHTML?
Editor Staff asked 3 weeks ago

How to create a Hello World page in XHTML?

1 Answers
Editor Staff answered 3 weeks ago

The Hello World page of XHTML looks like this:

 

  1. <?xml version=“1.0” encoding=“iso-8859-1”?>  
  2. <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN”   
  3. http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#8221;>   
  4. <html xml:lang=“en” lang=“en” xmlns=http://www.w3.org/1999/xhtml&#8221;>  
  5. <head>  
  6. <title>Hello World</title>  
  7. </head>  
  8. <body>  
  9. <p>My first Web page.</p>  
  10. </body>  
  11. </html>