Home>Article>Web Front-end> How to write html in eclipse

How to write html in eclipse

藏色散人
藏色散人 Original
2021-04-28 11:07:31 21845browse

How to write HTML in eclipse: 1. Switch the Java development mode to Web development mode and create a new HTML project; 2. Select Static Web Project to create a Web project and create HTML in the WebContent directory; 3. In Just insert images and other files into the html.

How to write html in eclipse

The operating environment of this article: windows7 system, Eclipse IDE 2020-06 R version, DELL G3 computer.

How to use eclipse to edit HTML

Note:First of all, the version of eclipse must be the JavaEE version, in order to prevent other Java codes from being used when editing html. An error occurs. When opening eclipse, use the right click "close project" to close the unused Java project.

1.Create a new html project and switch from Java development mode to Web development mode. Steps: Windows—Perspective—Custommize Perspective. Open the following picture and check the box in Shortcuts. Select Web


#2,Right-click New—Project—Web and select Static Web Project to create a Web project as shown below:



##Click Next as shown below: The Web content folder name can be set to your favorite name.

Click Finish to create successfully and you can find the newly created project in the project list, as shown below:


Then create the html file in the WebContent directory, right-click New—HTML File

Click HTML File to create the html file as shown below: Enter File name and click Finish to complete the creation


Creation is complete, OK Write the code, as shown below:

3,

Generally when we need to insert pictures and other files into html, we need Create a folder in the web directory to store these files. The method is as follows: Right-click New—Folder


##Enter Folder name and Finish to create the following directory Images

For more detailed HTML/css knowledge, please visitHTML video tutorial

column!

The above is the detailed content of How to write html in eclipse. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn