Creating HTML files
Follow these steps to create a new HTML file:
From the Web perspective, select File > New > HTML/XHTML File to launch the New HTML/XHTML File wizard.
Select the appropriate container for the file from the list of project folders (and subfolders). The folder that you choose should be under the Web Content folder of the Web project. If an HTML file that is included in a J2EE Web project is not stored under this folder, then it will not be included in the WAR file that is deployed to the server. In addition, link validation will not encompass files that are not under the Web Content folder.
Type a file name into the appropriate field.
Ensure that the appropriate HTML option is displayed in the Markup Language drop-down list.
Select the appropriate code generation model from the Model drop-down list. See the description directly below this field to determine which model to use.
Click Finish to create the file, or Next to provide additional encoding, DOCTYPE and style sheet information.
Select the appropriate encoding value to add to the file's HTML declaration from the Encoding list button. The default is the value set in the HTML Files preferences page, which is accessed by selecting Window > Preferences, and then expanding the Web and XML Files preferences. You may need to deselect the (Use workbench default) check box to select a new encoding attribute.
Ensure that the proper content type is selected in the Content Type drop-down list.
Select the HTML Document Type that you wish to associate with the HTML file. Depending on which Document Type that you select using the drop-down list, the corresponding Public ID, and, if appropriate, System ID will be displayed.
Optionally, specify a cascading style sheet (CSS) file to to be referenced by the new HTML file. Typically, CSS files are located in the theme folder under the Web Content folder.
Click Finish to create the file in the project that you have selected. The file will open in an HTML editor. The default is Page Designer, in the Design page.