HTML element attributes formatting labels

Source: Internet
Author: User

First, HTML elements:

1. element refers to all code from the start tag to the end tag

<p>this is my web page.</p>

Start tag:<p>

End tag:</p>

Element content: This ismy Web page.

2.HTML element Syntax

The content of an element is the content between the start tag and the end tag

Empty elements are closed in the Start tab

Most HTML elements can have properties

3. Nested HTML elements

Most HTML elements can be nested


Second, HTML properties

1. Tags can have attributes to provide more information for the element

2. Properties appear as key/value pairs

href= "Www.baidu.com"

3. Common label Properties

<body>:bgcolor background Color

<a>:target specify where to open the link (where link 3 link 4 will be reflected in the framework)

<a href= "target=" _blank "> Open new link </a> <a href=" www.baidu.com "target=" _self "> (default) Overwrite link </a> <a href= "www.baidu.com" target= "_parent" > Links 3</a> <a href= " Www.baidu.com "target=" _top "> Links 4</a>

4. Common Properties :

Class: The name of the specified element

ID: Specify element Unique ID

Style: The styling of the specified element

Title: Additional information for the specified element


Third, HTML formatting tags

<b> define Bold text

<big> define Large characters

<em> Define text-focused

<i> Define Italic characters

<small> define Small words

<strong> define aggravating tone

<sub> define subscript Words

<sup> defining superscript words

<ins> define Insert Words

<del> define Delete words






HTML element attributes formatting labels

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.