While we migrate several html pages to websites many pages contain html <center>
and <font>
tags. which xhtml document type definition should we use?
Either strict, transitional or frameset..?
While we migrate several html pages to websites many pages contain html <center>
and <font>
tags. which xhtml document type definition should we use?
Either strict, transitional or frameset..?
Here is what is at the top of all my pages:
<!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">
<head>
<title>YOUR TITLE</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="author" content="YOUR URL" />
<link rel="stylesheet" href="LINKTOYOURCSS.css"
type="text/css" media="all" />
<script type="text/javascript" src="LINKTOYOUR.js">
</script>
</head>
<body>
After converting:
<font>
<center>
to the css style sheet, I then run the file through the W3C Validator at https://validator.w3.org/. I found that this caught all the old things that I missed and made it easier to identify and correct. I have found that this works the best for me and it passes. Not sure about the others comments. I hope that this answers your question.