Formularze Typy input w HTML5

Plansza interaktywna styczeń 2016

URL:
http://www.plotkarka.eu/Pi/html5/formularze2.html
Autor:
Radosław Kowaluk

Elementy formularza

Layer 1 Definiowanie podstawowego formularza (The Basic Forms) Etykiety <label> formularz <form> Pola formularza np. <input>
Elementy formularzy*
Element Atrybuty i wartości specyficzne Opis
<input> lub <input/> accept, alt, autocomplete, autofocus, checked, dirname, disabled, form, formaction, formenctype, formmethod, formnovalidate, formtarget, height, inputmode, list, max, maxlength, min, minlength, multiple, name, pattern, placeholder, readonly, required, size, src, step, type, value, width pola formularza

*) Definicje elementów formularza w Planszy interaktywnej pod adresem: http://www.plotkarka.eu/Pi/html5/formularze.html

Typy elementu input

Atrybuty

Atrybuty i wartości (1z2)
Atrybut Wartość Opis
accept ContentTypes akceptowany typ MIME
alt Text tekst alternatywny
autocomplete on|off automatyczne uzupełnianie pól formularzyHTML5
autofocus autofocus element domyślnie aktywnyHTML5
checked checked zaznaczenie pola
dirname   kierunek tekstu
disabled disabled nieaktywny
form   wiązanie kontrolki z elementem formularzaHTML5
formaction URL program przetwarzający dane z formularzaHTML5
formenctype ? kodowanie danychHTML5
formmethod ? metoda wysyłania danychHTML5
formnovalidate formnovalidate wyłącza sprawdzanie danych formularzaHTML5
formtarget _blank | _self | _parent| _top| fn określa okno odpowiedźHTML5
height Length (pixels | %) wysokośćHTML5
inputmode ? rodzaj oczekiwanej zawartości polaHTML5

Typy elementu input

Atrybuty i wartości (2z2)
Atrybut Wartość Opis
list identyfikator? określa element z listą sugerowanych opcjiHTML5
max Number? maksymalna wartości liczby lub datyHTML5
maxlength Number maksymalna długość
min Number? minimalna wartości liczby lub datyHTML5
minlength Number? minimalna długośćHTML5
multiple multiple wielokrotny wybór
name NMTOKEN nazwa
pattern notacja ECMA262 wyrażenie regularneHTML5
placeholder text? podpowiedźHTML5
readonly readonly tylko do odczytu
required required elementy obowiązkoweHTML5
size Number wielkość
src URI adres zasobuHTML5
step any | Number? skok wartościHTML5
type text | password | checkbox | button | radio | submit | reset | file | hidden | image | search | tel | url | email | date | time | number | range | color typ elementu
width Length (pixels | %) szerokośćHTML5
value CDATA wartość

Nowe typy elementu input

Wartości atrybutów

Wartości atrybutu input
AtrybutWartość
texttekst
passwordhasło
checkboxpole wyboru
buttonprzycisk
radiopole radio
submitzatwierdzanie
resetdomyślne ustawienia
fileplik
hiddenpole ukryte
imageprzycisk graficzny
searchpole wyszukiwaniaHTML5
teladres pocztyHTML5
urladres URLHTML5
emailadres pocztyHTML5
datedataHTML5
timegodzinaHTML5
numberliczbaHTML5
rangesuwakHTML5
colorkolorHTML5

Nowe typy elementu input


Wykaz skrótów

Dodatki pracy 2013/2014

Adres:
http://plotkarka.eu/b/abbr.html
Autor opracowania:
Radosław Kowaluk

AAC
advanced audio coding
AI
Artificial Intelligence
AIML
Artificial Intelligence Markup Language
API
Application Programming Interface
ASCII
American Standard Code for Information Interchange
BMP
? (file format)
BTS
Base Transceiver Station
CDR
? (file format Corel Corporation)
CMD
Cross Document Messaging
CMS
Content Management System
CMY
cyan, magenta, yellow
CMYK
cyan, magenta, yellow and key (black)
CSS
Cascading Style Sheets
DHTML
Dynamic HyperText Markup Language
DOM
Document Object Model
DTD
Document Type Definition
ECMA
European Computer Manufacturers Association
EOT
Embedded Open Type
FLAC
Free Lossless Audio Codec (format pliku dźwiękowego)
FTP
File Transfer Protocol
GIF
Graphics Interchange Format
GNU
GNU’s not Unix
GPL
General Public License
GPS
Global Positioning System
HSL
Hue Saturation Lightness
HSLA
Hue Saturation Lightness Alpha
HSV
Hue Saturation Value (brightness)
HTML
HyperText Markup Language
HTTP
Hypertext Transfer Protocol
HTTPS
Hypertext Transfer Protocol Secure
IE
Internet Explorer
IP
Internet Protocol
IT
Information Technology
JNG
JPEG network graphics
JPEG
(file format), Joint Photographic Experts Group
JPG
JPEG
ISO
International Organization for Standardization
i18n
internationalization
MDN
Mozilla Developer Network
MIME
Multipurpose Internet Mail Extensions
MP3
MPEG-1/MPEG-2 Audio Layer 3
NEF
Nikon Electronic File
PCX
? PiCture eXchange
PCM
Pulse Code Modulation (format dźwięku)
PHP
PHP/FI - Personal Home Page/Forms Interpreter
PNG
Portable Network Graphics
PSD
? (file format Photoshop Document)
RAW
? (format graficzny)
RGB
Red Green Blue
RGBA
Red Green Blue Alpha
SGML
Standard Generalized Markup Language
SMIL
Synchronized Multimedia Integration Language
SWF
small web format
sRGB
standarised RGB (Red, Green, Blue)
SQL
Structured Query Language
SVG
Scalable Vector Graphics
TCP/IP
Transmission Control Protocol / Internet Protocol
TIFF
Tagged Image File Format
TXT
text file
URI
Uniform Resource Identifier
URL
Uniform Resource Locator
UTF
Unicode Transformation Format
XDM
Cross-Document Messaging
XML
Extensible Markup Language
XHTML
Extensible HyperText Markup Language
W3C
World Wide Web Consortium
WAI
Web Accessibility Initiative
WaSP
Web Standards Project
WAV
WAVE (format pliku dźwiekowego)
WCAG
Web Content Accessibility Guidelines
WMA
Windows Media Audio
WWW
World Wide Web