Question: How to convert most HTML pages to XHTML.
Answer: Heading lines at topAt the beginning of documents we need to include a few lines:<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">The location of the dtd allows validating parsers to check the document. Most browsers will ignore these tags.Every attribute must have a value<ol compact><input type="radio" name="title" value="decline" checked>decline</input>becomes<ol compact="compact" ><input type="radio" name="title" value="decline" checked="checked">decline</input>
Heading lines at topAt the beginning of documents we need to include a few lines:<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">The location of the dtd allows validating parsers to check the document. Most browsers will ignore these tags.Every attribute must have a value<ol compact><input type="radio" name="title" value="decline" checked>decline</input>becomes<ol compact="compact" ><input type="radio" name="title" value="decline" checked="checked">decline</input> Source: CoolInterview.com
Rules to Post Answers in CoolInterview.com:- There should not be any Spelling Mistakes. There should not be any Gramatical Errors. Answers must not contain any bad words. Answers should not be the repeat of same answer, already approved. Answer should be complete in itself.
Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here Vyoms.com - Best Freshers & Experienced Jobs Website.