Organize tag definitions and usage

Source: Internet
Author: User

1 <body> The element defines the subject of the document. <Body> An element contains all the content of a document (such as text, hyperlink, image, table, and list .)
2 <div> partitions or sections in the document can be defined ).

<Div> tags can divide documents into independent and different parts. It can be used as a strict organization tool without any format associated with it. If you use ID or class to mark <div>, the function of the tag becomes more effective.

Usage
<Div> is a block-level element. This means that its content automatically starts a new line. In fact, line feed is the unique format inherent in <div>. You can apply additional styles using the <div> class or ID. You do not have to add a class or ID to each <div>. This method also has some benefits. You can apply the class or ID attribute to the same <div> element, but the more common case is to apply only one of them. The main difference between the two is that class is used for element groups (similar elements, or can be understood as a certain type of elements), and ID is used to identify a unique element.
3 <HR> the tag creates a horizontal line on the HTML page. Horizontal rule can visually separate documents into parts
4 <dialog> label definition dialog box or window.
5. The <Object> tag is used to contain objects, such as images, audios, videos, Java applets, ActiveX, PDF, and Flash. However, this is not implemented due to vulnerabilities and lack of browser support. The support for browser objects depends on the object type. Unfortunately, mainstream browsers use different codes to load the same object type.
6. The <footer> label defines the footer of a document or section. <Footer> An element must contain information about its contained elements. The footer usually contains the author, copyright information, Terms of Use link, and contact information of the document. You can use multiple <footer> elements in a document.
7 <style> labels are used to define style information for HTML documents. In style, you can specify how HTML documents are rendered in a browser. The Type attribute is required to define the content of the style element. The only possible value is "text/CSS ". The style element is located in the head section.
8 <main> label specifies the main content of the document. <Main> the content in the element should be unique for the document. It should not contain repeated content in the document, such as the sidebar, navigation bar, copyright information, site logo or search form.
9 <q> the label defines short references. Browsers often add quotation marks around the referenced content.
10 <p> label defines a paragraph. <P> the element automatically creates some spaces before and after it. The browser automatically adds these spaces. You can also specify them in the style sheet.

Organize tag definitions and usage

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.