First understanding of HTML, W3C standards, how to use IDEA to create HTML projects, HTML basic structure, basic information of web pages

1. What is HTML?

HTML—— H yperext Markup L anguagr (Hypertext Markup Language )

Hypertext includes: text, pictures, audio, video, animation, etc.

Currently commonly used in web pages - HTML5

HTML5 provides some new elements and some interesting new features, but also establishes some new rules. The establishment of these elements, characteristics and rules provides many new page functions, such as using web pages to realize dynamic rendering of graphics, charts, images and animations, and directly using web pages to play videos without installing any plug-ins.


 

Two, W3C standard

W3C - W orld W ide W eb Consortium (World Wide Web Consortium)

W3C standards include: structured standard language (HTML, XML), presentation standard language (CSS), behavioral standard (DOM, ECMAScript)


 

3. How to use IDEA to create HTML projects

1. After creating a new java project, you can delete the src folder, then right-click and select New—Directory to create a folder yourself

 2. After creating the folder, right-click New—HTML File, and name it, the label language will be automatically generated

 

 3. Click the browser logo on the right to run the HTML file in the browser

 


 

 Fourth, the basic structure of HTML

Paired tags such as <body>, </body> are called open tags and closed tags respectively (empty elements), such as <hr/>; meaning to use / to close empty elements. A single one is called a self-closing tag.


 

5. Basic information of the web page

Comments for HTML files: <!-- content -->

DOCTYPE declaration

<title> tag

<meta> tag

operation result: 

View the source code of the web page as follows: 

Guess you like

Origin blog.csdn.net/m0_59800431/article/details/129467798