html (4) tag form form-basic

In web pages, we often see the existence of forms, and then we need to use form and other tags.
Inside the form tag, you can put the tags needed by various forms. It defines the overall form area. The following tags can be placed in it:
(1) Input tag: There can be many types, such as text, password, file, etc.
(2) Label Label: can label input, textarea, etc.
(3) textarea label: can be a multi-line text
(4) select label: can define a drop-down list label, which can be used with option options

<form>
        <label>我对input进行修饰</label>
        <input type="text">
        <br>
        <br>
        <label>我对textarea进行修饰</label>
        <textarea></textarea>
        <br>
        <label>我对select进行修饰</label>
        <select>
            <option>下拉选项1</option>
            <option>下拉选项2</option>
            <option>下拉选项3</option>
        </select>
    </form>

Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_48445640/article/details/108901765