-
Primer 1.
"Naivni" upitnik za
prijavljivanje ispita.
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-2">
<TITLE>Formular</TITLE>
</HEAD>
<BODY><B>
<FORM METHOD="post" ACTION="/cgi-bin/form1">
<P><I>
Vaše ime i prezime</I>: <INPUT NAME="nom" size=40>
<P><I>
Koje ispite prijavljujete za junski rok</I>?
<UL>
<LI><input type="CHECKBOX" name="ispit" value="an"> Analiza I
<LI><input type="CHECKBOX" name="ispit" value="ag"> Analitička geometrija
<LI><input type="CHECKBOX" name="ispit" value="la"> Linearna algebra
<LI><input type="CHECKBOX" name="ispit" value="op"> Osnovi programiranja
</UL>
<P><I>
Da li ste položili kolokvijume iz Osnova programiranja</I>?
<INPUT TYPE="radio" NAME="kolok" VALUE="da"> Da
<INPUT TYPE="radio" NAME="kolok" VALUE="ne"> Ne
</P>
<P>
<INPUT TYPE="submit" VALUE="Slanje">
<INPUT TYPE="reset" VALUE="Poništavanje">
</FORM>
</B>
</BODY>
</HTML>
Vizuelni prikaz.
-
Primer 2.
Atributi
SIZE
i
MULTIPLE
etikete SELECT
.
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-2">
<TITLE>Formular</TITLE>
</HEAD>
<BODY><B>
<!------------- 1. formular----------------------------------->
<FORM METHOD="post" ACTION="/cgi-bin/form1">
<I>Moji omiljeni predmet na 1. godini je:</I>
<form>
<select name="predmet">
<option value=an> Analiza 1
<option value=la> Linerana algebra
<option value=ag> Analitička geometrija
<option value=op> Osnovi programiranja
</select>
</form>
<!--------------- 2. formular ---------------------------------->
<FORM METHOD="post" ACTION="/cgi-bin/form1">
<I>Moji omiljeni predmet(i) na 1. godini su:</I>
<form>
<select name="predmet" size=2 multiple>
<option value=an> Analiza 1
<option value=la> Linerana algebra
<option value=ag> Analitička geometrija
<option value=op> Osnovi programiranja
</select>
</form>
<p>(Višestruki izbor se vrši pritiskom na <code>CTRL</code> i
"klikom"</p>
</B>
</BODY>
</HTML>
Vizuelni prikaz.
-
Primer 3.
Prikaz teksta u prozoru opisanom sa
TEXTAREA
. Tekst predstavlja izbor napomene
o stilu programiranja prema: Kernighan & Plauger, 1978:
The Elements of Programming Style, McGraw-Hill
<HTML>
<HEAD>
<title>Napomene </title>
</HEAD>
<BODY>
<P>
<CENTER><FONT COLOR="#FF0000" SIZE="8">
<B>Brian Kernighan's Programming Style Tips</B>
</FONT></CENTER>
<BR><BR>
<div align=CENTER>
<FORM>
<TEXTAREA NAME="textarea" ROWS=10 COLS=60>
Say what you mean, simply and directly.
.......................................
Don't stop with your first draft.
</TEXTAREA>
</FORM>
</div>
</BODY>
</HTML>
Vizuelni prikaz.