Advertisement
mikolajmki

pia_lab2

Mar 9th, 2022
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5.47 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3.     <head>
  4.             <meta charset="UTF-8"/>
  5.     </head>
  6.     <body>
  7.         <div id="tytul1"> <h1>Szybki kurs HTML</h1> </div>
  8.         <div id="linki">
  9.             <a href="index.html">Podstawowe znaczniki</a>
  10.             <a href="tabele.html">Twworzenie tabel</a>
  11.             <a href="formularz.html">Budowa formularzy</a>
  12.         </div>
  13.  
  14.         <div id="tytul2"><h2>Podstawowe znaczniki HTML to:</h2></div>
  15.  
  16.         <div id="lista">
  17.             <ul>
  18.                 <li> &lt;form&gt; - zbaczbuj podstawowy zawierajacy pola formularza</li>
  19.                 <li> &lt;input&gt; - znacznik umozliwia wstawienie roznych pol (pola tekstowe, przycisk typu radio, przycisk typu checkbox) w zaleznosci od wartosci atrybutu type</li>
  20.                 <li> &lt;select&gt; - pole formularza typu lista rozwijana</li>
  21.                 <li> &lt;textarea&gt; - pole formularza obszar tekstowy</li>
  22.                 <li> &lt;button&gt; - pole formularza typu przycisk</li>
  23.             </ul>
  24.         </div>
  25.  
  26.         <div id="tytul3"><h2>Przykladowy formularz HTML:</h2></div>
  27.         <form>
  28.             <div id="form1">
  29.                 <label for="t1">Nazwisko: </label>
  30.                 <input type="text" id="t1" name="surname"/><br/>
  31.             </div>
  32.             <div id="form2">
  33.                 <label for="t2">Wiek: </label>
  34.                 <input type="text" id="t2" name="age"/><br/>
  35.             </div>
  36.             <div id="selectform" id="s1">
  37.                 <label for="s1">Panstwo: </label>
  38.                 <select name="countries">
  39.                     <option>Polska</option>
  40.                     <option>Niemcy</option>
  41.                     <option>Wlochy</option>
  42.                     <option>Francja</option>
  43.                 </select>
  44.             </div>
  45.             <div id="form3">
  46.                 <label for="t3">E-mail: </label>
  47.                 <input type="email" id="t3" name="email"/><br/>
  48.             </div>
  49.             <div id="tytul4" style="font-size: 22;"><h3>Zamawian tutorial z jezyka:</h3></div>
  50.             <div id="checkboxes">
  51.                 <input type="checkbox" id="ch1" name="choice" value="P"/>
  52.                     <label for="ch1">PHP</label>
  53.                 <input type="checkbox" id="ch2" name="choice" value="C"/>
  54.                     <label for="ch2">C/C++</label>
  55.                 <input type="checkbox" id="ch3" name="choice" value="J"/>
  56.                     <label for="ch3">Java</label>
  57.             </div>
  58.             <div id="tytul5" style="font-size: 22;"><h3>Sposob zaplaty:</h3></div>
  59.             <div id="radios">
  60.                 <input type="radio" id="r1" name="platnosc" value="E" />
  61.                     <label for="r1">eurocard</label>
  62.                 <input type="radio" id="r2" name="platnosc" value="V" />
  63.                     <label for="r2">visa</label>
  64.                 <input type="radio" id="r3" name="platnosc" value="P" />
  65.                     <label for="r3">przelew bankowy</label>
  66.             </div>
  67.             <br/>
  68.             <div id="buttons">
  69.                 <input type="submit" value="Wyslij"/>
  70.                 <input type="reset" value="Anuluj"/>
  71.             </div>
  72.         </form>
  73.     </body>
  74. </html>
  75.  
  76. <!DOCTYPE html>
  77. <html>
  78.     <head>
  79.         <meta charset="UTF-8"/>
  80.     </head>
  81.     <body>
  82.         <form>
  83.             <div id="tytul1"><h1>Kreator Pizzy</h1></div>
  84.             <fieldset>
  85.                 <legend>Rozmiar: </legend>
  86.                 <input type="radio" id="r1" name="size" value="M"/>
  87.                 <label for="r1">Mala</label>
  88.                 <input type="radio" id="r2" name="size" value="S"/>
  89.                 <label for="r2">Srednia</label>
  90.                 <input type="radio" id="r3" name="size" value="D"/>
  91.                 <label for="r3">Duza</label>
  92.  
  93.             </fieldset>
  94.             <fieldset>
  95.                 <legend>Dodatki: </legend>
  96.                 <input type="checkbox" id="ch1" name="extras" value="sz">
  97.                 <label for="ch1">Szynka</label>
  98.                 <input type="checkbox" id="ch2" name="extras" value="sa">
  99.                 <label for="ch2">Salami</label>
  100.                 <input type="checkbox" id="ch3" name="extras" value="bo">
  101.                 <label for="ch3">Boczek</label>
  102.                 <input type="checkbox" id="ch4" name="extras" value="pa">
  103.                 <label for="ch4">Papryka</label>
  104.                 <input type="checkbox" id="ch5" name="extras" value="po">
  105.                 <label for="ch5">Pomidor</label>
  106.                 <input type="checkbox" id="ch6" name="extras" value="se">
  107.                 <label for="ch6">Ser</label>
  108.             </fieldset>
  109.             <fieldset>
  110.                 <label for="m1">Wybierz sos: </label>
  111.                 <select id="m1" size="4" name="sauce" multiple="multiple">
  112.                     <option value="pom">Pomidorowy</option>
  113.                     <option value="cz">Czosnkowy</option>
  114.                     <option value="kl">Ketchup lagodny</option>
  115.                     <option value="kp">Ketchup pikantny</option>
  116.                 </select>
  117.                 <br/>
  118.                 <legend>Sosy: </legend>
  119.                 <label for="t1">Inne uwagi: </label>
  120.                 <textarea id="t1" cols="20" rows="3" name="notes">
  121.  
  122.                 </textarea>
  123.             </fieldset>
  124.             <div id="buttons">
  125.                 <input type="reset" value="Wyczysc dane">
  126.                 <input type="submit" value="Wyslij zamowienie">
  127.             </div>
  128.         </form>
  129.     </body>
  130. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement