Skip to Content
MOBILE HTML5學習手冊
book

MOBILE HTML5學習手冊

by Estelle Weyl
June 2014
Intermediate to advanced
488 pages
9h 56m
Chinese
GoTop Information, Inc.
Content preview from MOBILE HTML5學習手冊
130
|
第四章
其他表單元素
以下各節將會快速地討論各種表單元素。這些元素可以協助你瞭解 HTML5 的新功能。
<form> 元素
<form>
元素有一些小改變。現在表單會在被提交時自動驗證輸入類型。新增的布林屬性
novalidate (novalidate="novalidate")
可避免讓表單被提交時進行本機驗證。
表單控制項不再一定要是
<form>:
的子元素了,你可以使用表單控制項的
form
屬性來選
擇與控制項有關的表單。
autocomplete
屬性也被加到
<form>
元素。
此外,
action
屬性不再是必要的。如果省略它,表單會被提交給自己,如同將
action
成目前的網頁。
<fieldset> <legend>
<fieldset>
會將表單控制項組合在一起。
<fieldset>
的子元素會組成群組。
<fieldset>
第一個子元素可選用
<legend>
,它會賦與
<fieldset>
群組一個名稱。
<legend>
元素是
<fieldset>
其他內容的標題或說明文字。
<legend>
只可成為
<fieldset>
的子元素,而且必
須使用封閉標籤。
如果你指定
disabled
布林屬性,會停用
<fieldset>
元素的所有表單控制項後代,但不包
<legend>
的子元素。你可以用
form
屬性來將
<fieldset>
元素與特定的表單結合(見
form
屬性的說明)。
name
屬性會顯示元素的名稱。
<select><option><optgroup>
<select>
標籤可產生選單。
<select>
必須包含一或多個 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

JAVASCRIPT網頁應用程式設計

JAVASCRIPT網頁應用程式設計

Alex MacCaw

Publisher Resources

ISBN: 9789863471240