Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the components of the html page

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly introduces "what are the components of html pages". In daily operation, I believe many people have doubts about what are the components of html pages. Xiaobian consulted all kinds of materials and sorted out simple and easy to use operation methods. I hope to help you answer the doubts about "what are the components of html pages"! Next, please follow the small series to learn together!

html page components: 1, DOCTYPE declaration part, can tell the Web browser which HTML version is used;2, head, mainly contains coding declaration, title, style sheet embedding, etc.;3, body content part, contains all the content of the document;3, footer bottom, defines the footer of the document or section.

Operating environment of this tutorial: Windows 7 system, HTML5 version, Dell G3 computer.

Declarations: DOCTYPE Declarations

The code at the beginning of the page is DOCTYPE, which is short for document type: it is used to indicate what version of XHTML or HTML is used. The DTD (such as xhtml1-transitional.dtd) is called a document type definition, which contains the rules of the document, and the browser interprets the identity of the page according to the defined DTD and displays it. DOCTYPE statements are essential key components for building standards-compliant web pages

Location: Usually before the code starts

Overall analysis: All content

All of which is divided into three parts

Head:

Content:

Bottom:

Head:

It mainly contains code declaration…, title…, style sheet embedding…; relative path definition…, script…

Content:

The body element defines the body of the document.

The body element contains all the content of the document (text, hyperlinks, images, tables, lists, and so on).

Bottom:

Tags define the footer of a document or section.

An element should contain information about the element it contains.

Footer usually contains the author of the document, copyright information, links to terms of use, contact information, and so on.

You can use multiple elements in a document.

At this point, the study of "what are the components of html pages" is over, hoping to solve everyone's doubts. Theory and practice can better match to help everyone learn, go and try it! If you want to continue learning more relevant knowledge, please continue to pay attention to the website, Xiaobian will continue to strive to bring more practical articles for everyone!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report