• Nie Znaleziono Wyników

HTML – part II

N/A
N/A
Protected

Academic year: 2021

Share "HTML – part II"

Copied!
8
0
0

Pełen tekst

(1)

HTML – part II

Maciej Grzenda, PhD

Warsaw University of Technology

Faculty of Mathematics and Information Science M.Grzenda@mini.pw.edu.pl

http://www.mini.pw.edu.pl/~grzendam

(2)

HTML tasks

• In this task and all the other

HTML/CSS/JavaScript tasks use any text editor you prefer, if possible with syntax highlighting feature such as Notepad++

• Verify whether your document is compliant with HTML standard and fix errors, if

necessary

(3)

p. 3

Task 1 – HTML form

Develop a web site similar to this one:

Field set textbox

Disabled textbox Textarea

Combo box a.k.a.

drop down list List box

Submit button

(4)

Task 1 – sample code to start from

<body>

<form method="get"

action="http://someserver/not_specified_yet">

<fieldset>

<legend>Product info</legend>

<label for="pname">Product name</label>

<input accesskey="P" type="text" value="LCD monitor"

readonly="readonly" tabindex="2" id="pname"

name="prodname" maxlength="30">

<br />

1. Use appropriate attributes to make

product name read only,

list box accept more than one value at a time

2. Every data item has to be provided with a unique name via name attribute.

(5)

p. 5

Task 2 – HTML form

Specify the layout of your form with a table:

A table with two columns (one for labels and one for input items)

Text alignment

would be discussed

later, during CSS

classes

(6)

Task 3 – further form items

Modify the definition of drop down list to:

Add the following items to the form:

Checkbox

Radio buttons

File upload

Radio buttons

(7)

p. 7

Task 4 – HTML5 forms’ features

• Add autocomplete feature to Product name (sample:

product names: Netbook, Ultrabook, Network card,…)

• Add a pattern to Product name to accept only letters (first in upper case) and blanks in product name

• Add e-mail field to producer’s help desk

1. Go to http://www.w3schools.com/html/html5_intro.asp for details on using HTML5

(8)

Task 5 – more HTML5 inputs

• Investigate more types of HTML5 inputs

– color, date, time, number, range, ...

• Check their display in different browsers

Cytaty

Powiązane dokumenty

Natomiast zamiast: &#34;opis odsyłacza&#34;, należy wpisać krótki tekst, który pojawi się na ekranie i po kliknięciu którego nastąpi przejście do podanej podstrony (adres

UWAGA : Wszystkie pola tego typu, które dotyczą tego samego pytania, powinny nosić taką samą nazwę! Dodatkowo atrybut value=&#34;...&#34; jest tutaj absolutnie konieczny - musi

• Display links to commercial web sites with 3 times smaller font size than the links to non-commercial ones7. • Display the names of the authors

– When a user clicks on green button: +5 points are given – When a user clicks on red button: -10 points are given – The result is displayed constantly on the screen. – After

It is important to note here that JavaScript libraries such as jQuery or prototype use regular JavaScript and DOM methods in the background. An important advantage of such libraries

Tam też znajdziecie wykresy tych funkcji z omówionymi

dużych szans Zamoyski przegrał, gdyż stronnictwo chłopskie reprezentowane przez Wincentego Witosa nie zagłosowało na niego tylko dlatego, że był ziemianinem.. Swoją

Strona powinna być responsywna: układ strony powinien być pionowy dla mniejszych szerokości okna przeglądarki (np. ≤ 900px) oraz mieszany dla szerokości większych;. Obrazki