| <?xml version="1.0" encoding="UTF-8"?> |
| <!DOCTYPE html |
| PUBLIC "-//IETF//DTD HTML 4.0//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| <html><head> |
| <!-- /******************************************************************************* |
| * Copyright (c) 2000, 2006 IBM Corporation and others. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * IBM Corporation - initial API and implementation |
| *******************************************************************************/ --> |
| <link rel="stylesheet" type="text/css" href="../../org.eclipse.wst.doc.user/common.css"/> |
| <title>Specifying an implicit document type for an HTML, XHTML, or JSP fragment</title> |
| </head> |
| <body id="tjchgxdt"><a name="tjchgxdt"><!-- --></a> |
| <h1 class="topictitle1">Specifying an implicit document type for an HTML, XHTML, or JSP fragment</h1> |
| <div><div class="section"> <p>An <em>implicit</em> document type is used for content assist (CTRL+Spacebar), |
| the Properties view, and other editing contexts when no DOCTYPE declaration |
| is specified in an HTML, XHTML, or JSP file. Typically, this feature is used |
| for a fragment (partial document) that can be included in other pages using |
| JSP include or server-side include.</p> |
| <p>To assign an implicit document type |
| to an HTML, XHTML, or JSP fragment, do the following: </p> |
| </div> |
| <ol><li class="stepexpand"><span>From the Project Explorer view, select the HTML, XHTML, or JSP |
| fragment.</span></li> |
| <li class="stepexpand"><span>Select <span><b>Properties</b></span> from the file's |
| pop-up menu.</span></li> |
| <li class="stepexpand"><span>In the <b>Web Content Settings</b> page, select |
| the desired DOCTYPE from the <span><b>Document type</b></span> drop-down |
| list.</span> <p>The <span><b>Properties</b></span> dialog |
| for Web projects also includes an <span><b>Web Content Settings</b></span> page, |
| where you can specify project-default HTML document type. This setting will |
| be used if no DOCTYPE declaration is specified in the file, and no default |
| document type is specified in the <span><b>Web Content Settings</b></span> page |
| on the <span><b>Properties</b></span> dialog for the file.</p> |
| </li> |
| </ol> |
| </div> |
| <div></div> |
| </body></html> |