HTML5 input tag, details label, Mark Tag, and progress bar label usage

Source: Internet
Author: User

recently in self-study HTML5 related knowledge, for the first time to write a blog, this time the main record input tag and DataList tag combination, details label, mark Tag and progress bar label use.

I. Use of input tags and detail tags

1. Basic grammar

<inputtype= "text"List= "Vallist"/>   <DataListID= "Vallist">      <optionvalue= "C + +">C++</option>      <optionvalue= "C #">C#</option>      <optionvalue= "Java">Java</option>   </DataList>

2. Effects

It is important to note that the List property value in input must be consistent with the ID of DataList

Ii. details of the label

1. Basic syntax

< Details >   < Summary > English </summary>   <p> Global language </p></details>

2. Effect:

It is important to note that the Details tab's Open property allows the content to be displayed directly

<open= "Open">   <> English < /Summary>   <p> Global Language </ P > </ Details >

Effect

Third, Mark label

1. Basic syntax:

< Mark > Mark </mark>

2. Effects

The mark label is easy to use and makes the text look bright.

Four, progress bar label Progress

1. Basic syntax:

<max= " +" value= "/> "

2. Effect:

It is important to note that Max refers to the maximum value of the progress bar, and value refers to the current progress value.

HTML5 input tag, details label, Mark Tag, and progress bar label 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.