KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Setting the HTML page DOCTYPE when using 4DAF Objects
PRODUCT: 4D Web 2.0 Pack | VERSION: 1.1 | PLATFORM: Mac & Win
Published On: July 18, 2007
Your current browser may not allow you to download the asset. We recommend Mozilla Firefox or Google Chrome.
Log In

PLEASE NOTE: This Tech Tip applies to 4D Web 2.0 Pack version 1.1

When embedding 4D Ajax Framework objects into an HTML page, it is recommended that the webpage doctype be set to Transitional XHTML mode like so:

<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="https://www.w3.org/1999/xhtml">

...

</html>



For this and other recommendations when adding 4D Ajax Framework objects to your web pages, go to:

https://daxipedia.4d.com/index.php/4DAF_Object_Integration_Guidelines

For more information on XHTML, go to:

https://en.wikipedia.org/wiki/XHTML

For the latest information on Web 2.0 Pack please go to:

https://daxipedia.4d.com