tags and tag attributes that are bound to be used in HTML (this is an important element of the Web page composition)

Source: Internet
Author: User

These tags have to be remembered and are sure to be used.

First, line-changing <br/>

B. Space &nbsp;

Third, paragraph <p></p>

Iv. picture

V. Hyperlinks <a href= "path" > What to use if hyperlink (image/Text) </a>

Vi.. Table

<table> table

<tr> Line

<td> cell

</td> End of Cell

End of </tr> Line

End of </table> table

The following are the properties of the table

Width= "Wide align=" "Horizontal position valign=" "Upper and lower position

height= "High background=" "background picture bgcolor=" "Background color

border= "Table Edge bordercolor=" "Table Edge color cellpadding=" "Cell contents to edge distance

cellspcing= "" Cell spacing

Vii. Forms 12 elements (must be used in the management system)

<form action= "Server path" method= "pose (common)/get (infrequently used)" >

Form content

</form>

(1) Text class

1, text box: <input type= "text"/>) placeholder= "" (Gray content) value= "" (Default display content)

2, Password box: <input type= "password"/> (input content display, length not limited) placeholder= "" (Gray content) value= "" (Default display, but display)

3. Text field:<textarea></textarea> (multiple lines of text, unlimited length) placeholder= "" (Gray content)

4, Hidden text box: <input type= "hidden"/> (computer view, users do not see)

(2) Button class

1, Normal button: <input type= "button"/> value= "" (Button renamed)

2, submit button: <input type= "Submit"/> value= "" (Button renamed) (Refresh page)

3. Reset button: <input type= "reset"/> value= "" (Button renamed)

4. Picture Submit button: <input type= "image" src= "path"/>

(3) Select Class

1, Radio: <input type= "Radio"/> 1.name= "" (group) 2.value= "" (uploaded to server data) 3. Id= "value" <label for= "value" > (picture/Text) </label> (click Text to select)

2, Multi-select: <input type= "checkbox"/> 1.name= "" (group) 2.value= "" (uploaded to server data) 3. Id= "value" <label for= "value" > (picture/Text) </label> (click Text to select)

3. Drop-down menu:

<select> value= "" (uploaded to server data)

<option> value 1</option>

<option> value 1</option>

</select>

4. Uploading files: <input type= "file"/> value= "" (The Path of uploading content)

Eight, the title tag (Automatic line wrapping)

.....    .....

Nine, layer label

1, <div> content </div> (one line cannot have two coexistence)

2, <span> content </span> (extract content can be clamped in a paragraph, not automatically wrapped)

3. List

There are sequence tables:

<ol type= "a/1/i" >

<li> content 1</li>

<li> content 2</li>

</ol>

Unordered list:

<ul type= "Circle" >

<li> content 1</li>

<li> content 2</li>

</ul>

tags and tag attributes that are bound to be used in HTML (this is an important element of the Web page composition)

Related Article

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.