1. Trang chủ
  2. » Mẫu Slide

Lecture Web technologies and programming – Lecture 11: HTML 5 form elments - TRƯỜNG CÁN BỘ QUẢN LÝ GIÁO DỤC THÀNH PHỐ HỒ CHÍ MINH

10 8 0

Đang tải... (xem toàn văn)

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 10
Dung lượng 0,9 MB

Nội dung

– Allows a short hint to be displayed inside. the form element[r]

(1)(2)(3)(4)

Creating forms in HTML

Common Form Attributes

When to Use GET AND POST?

Form elements

Textbox

Password FieldHidden FieldCheckboxRadio ButtonText AreaSelect ListSubmit ButtonReset Button

Adding form elements

(5)

HTML5 enhancements in form

XHTML

(6)

HTML5 enhances the forms in two

ways

Adding new attributes to exiting elements

New elements

(7)

Required attribute:

tells the browser to only submit the form if

the field in question is filled out

ensures that all necessary information is

provided by the user

<input type=“text” name=“name”

required>

(8)

8

(9)

9

(10)

Placeholder attribute:

Allows a short hint to be displayed inside

the form element

tell the user what data should be entered

in that field

<input type=“text” name=“name”

placeholder=“Only upper case

letters” >

Ngày đăng: 01/04/2021, 02:13

TÀI LIỆU CÙNG NGƯỜI DÙNG

TÀI LIỆU LIÊN QUAN

w