0% found this document useful (0 votes)
43 views

Html Формулари Практична Настава Iiгод. Кта

The document contains 6 examples of HTML forms with different form elements like text fields, radio buttons, checkboxes, submit buttons, and text areas. Example 3 shows a form for ordering pizza with fields to select quantity, size, toppings, and input fields for contact details. Example 6 is a more complex form that collects personal information like name, address, interests, and includes different field types like text, select, radio, and password. The examples demonstrate how to structure forms in HTML and use various input elements to collect user information.

Uploaded by

Aleks Milanov
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
43 views

Html Формулари Практична Настава Iiгод. Кта

The document contains 6 examples of HTML forms with different form elements like text fields, radio buttons, checkboxes, submit buttons, and text areas. Example 3 shows a form for ordering pizza with fields to select quantity, size, toppings, and input fields for contact details. Example 6 is a more complex form that collects personal information like name, address, interests, and includes different field types like text, select, radio, and password. The examples demonstrate how to structure forms in HTML and use various input elements to collect user information.

Uploaded by

Aleks Milanov
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

HTML Формулари Практична настава IIгод.

КТА

HTML формулари
Пример1:

<html>
<head>
<title>Name </title>
</head>
<body>
<form action="akcija" method=“POST“>
Vnesete go svoeto ime: <input type=“text“ name="name"><p>
Vnesete go svoeto prezime: <input type=“text“ name="prezime"><p>
<input type="submit">
</form>
</body>
</html>

Пример2:

<html>
<head>
<title>Name </title>
</head>
<body>
<form action="akcija" method=“POST“>
Vnesete go svoeto ime: <input type=“text“ name="name"><p>
Vnesete go svoeto prezime: <input type=“text“ name="prezime"><p>
<input type="submit">
</form>
</body>
</html>

Пример3:

<html>
<head>
<title>Restoran za italijanska hrana </title>
</head>
<body>
<h1> Restoran za italijanska hrana </h1>
<form action="adresa" method=“post“>
<h2>Pici</h2>
<p>Kolku pici sakate? <input name="numpizzas" value="0" size="3" maxlength="3">
<p>
<input type=“radio“ name="size" value="large" checked>Golema<br>
<input type=“radio“ name="size" value="medium">Sredna<br>
<input type=“radio“ name="size" value="small">Mala
<h3>Dodatoci</h3>
<p>
HTML Формулари Практична настава IIгод. КТА

<input type=“checkbox“ value="pepperoni">Luta piperka <br>


<input type=“checkbox“ value="sausage">Kobasici<br>
<input type=“checkbox“ value="mushroom">Pecurki<br>
<input type=“checkbox“ value="peppers">Kecap<br>
<input type=“checkbox“ value="onion">Jajce<br>
<input type=“checkbox“ value="olives">Maslinki<br>
<p>Ime: <input type="text" name="name">
<p>Broj na telefon: <input type="text" name="phone">
<p>Adresa:
<textarea name="address" rows=6 cols=50>
</textarea>
<p>Broj na kreditna kartica: <input type="password" name="creditcard" size=20></p>
<input type="submit" value="Ispratete ja narackata">
</form>
</body>
</html>

Пример4:

<HTML>
<HEAD>
<TITLE>forms</TITLE>
</HEAD>
<BODY>
<FORM>
<INPUT NAME="form4" TYPE="checkbox" ><BR>
<INPUT NAME="form5" TYPE="checkbox"><BR>
<INPUT NAME="form6" TYPE="checkbox" CHECKED>
</FORM>
</BODY>
</HTML>

Пример5:

<HTML>
<HEAD>
<TITLE>forms</TITLE>
</HEAD>
<BODY>
<FORM>
<INPUT NAME="form3" TYPE="password">
</FORM>
</BODY>
</HTML>

Пример6:

<html>
<head>
<title>Primer za upotreba na formular </title>
HTML Формулари Практична настава IIгод. КТА

</head>
<body bgcolor="#FFFFFF" text="#000000">
<p><b>Primer za upotreba na formular </b></p>
<hr>
<div align="left"><b>Licni informacii:</b> </div>
<form name="info" method="post" action=”akcija”>
<table width="600" border="0" cellspacing="10" cellpadding="10">
<tr>
<td>Ime:</td>
<td><input type="text" name="ime"></td>
<td>Prezime:</td>
<td><input type="text" name="prezime"></td>
</tr>
<tr>
<td>Ulica i broj:</td>
<td><input type="text" name="ulica" size="30"></td>
</tr>
<tr>
<td>Grad:</td>
<td><input type="text" name="grad" value="Skopje"></td>
<td>Država:</td>
<td>
<select name="drzava">
<option>Makedonija</option>
<option>Turska</option>
<option>Egipat</option>
<option>Hrvtaska</option>
<option>Tunis</option>
<option>Slovenija</option>
</select>
</td>
</tr>
<tr>
<td>Poštenski broj:</td>
<td><input type="text" name="postBroj" size="5" maxlength="5"></td>
</tr>
<tr>
<td rowspan="2">Pol:</td>
<td>Maski <input type="radio" name="pol"></td>
</tr>
<tr>
<td>Ženski <input type="radio" name="pol"></td>
</tr>
<tr>
<td>Interesiranja:</td>
<td colspan="5">
<table width="100%" border="0" cellspacing="1" cellpadding="1">
<tr>
<td width="10%">Sport</td>
<td width="10%"><input type="checkbox" name="sport"></td>
HTML Формулари Практична настава IIгод. КТА

<td width="10%">Muzika</td>
<td width="10%"><input type="checkbox" name="muzika" checked></td>
<td width="10%">Patuvanja</td>
<td width="10%"><input type="checkbox" name="patuvanja"
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>Lozinka:</td>
<td><input type="password" name="lozinka"></td>
<td></td>
<td></td>
</tr>
<tr>
<td>Komentar:</td>
<td><textarea cols="30" rows="5">Ovde napisi komentar</textarea></td>
</tr>
<tr>
<td colspan="6">
<div align="center">
<input type="submit" name="potvrdi" value="POTVRDI">
<input type="reset" name="otkazi se" value="PONISTI">
</div>
</td>
</tr>
</table>
</form>
</body>
</html>

You might also like