You can use the New HTML File wizard to create HTML and XHTML files
and framesets.
- Create a static or a dynamic Web project if you have not already
done so.
- In the Project Explorer, expand your project and right click on
your WebContent folder or on a subfolder under WebContent. Note
that if you choose any other folder in which to create the HTML file, 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
WebContent folder.
- From the context menu, select . The New HTML Page window appears with your
folder selected
- Type a file name into the File name field, making sure you include
an html extension (html, htm, xhtml, htpl, wml, shtml, or shtm) in the file
name.
- You have several options for proceeding:
- To accept the defaults associated with a new HTML file, select Finish.
- To use a template file for the initial content of your HTML page,
select Next. The Select HTML Template window appears.
Select the Use HTML Template check box, and then select
one of the sample templates. You can also select the HTML Templates link
to add or remove HTML templates to your list of templates.