Advertisement
fr1sk

Untitled

Apr 21st, 2016
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 4.37 KB | None | 0 0
  1. <!DOCTYPE>
  2.  
  3. <html>
  4.     <head>
  5.         <title> HTML formular </title>
  6.         <style>
  7.             .ulaz{
  8.                 background: cyan;
  9.             }
  10.             input{
  11.                 color:blueviolet;
  12.            
  13.             }
  14.             fieldset input{
  15.                 position: relative;
  16.                 top: 3px;
  17.             }
  18.         </style>
  19.     </head>
  20.     <body>
  21.    
  22.         <form>
  23.             <fieldset>
  24.                 <legend>Osnovni podaci</legend>
  25.             <label for="ime">Ime i prezime: </label>
  26.             <input class="ulazi" type="text" id="ime" placeholder="npr. Otac Ovde" value="NULL" required>
  27.             <br>
  28.             <label for="user">Korisnicko ime: </label>
  29.             <input class="ulazi" type="text" id="user" placeholder="fr1sk" name="username" required>
  30.             <br>
  31.             <label for="pass">Password: </label>
  32.             <input class="ulazi" type="password" id="pass" placeholder="" name="password">
  33.             <br>
  34.             <label for="date">Datum Rodjenja: </label>
  35.             <input class="ulazi" type="date" id="date" placeholder="" name="date">
  36.             <br>
  37.              <label for="email">Email adresa: </label>
  38.             <input class="ulazi" type="email" id="email" placeholder="" name="email" autocomplete="on" autofocus>
  39.              <br>
  40.              <label for="url">Web adresa: </label>
  41.             <input class="ulazi" type="url" id="url" placeholder="" name="url" autocomplete="on">
  42.             <br>
  43.              <label for="number">Broj: </label>
  44.             <input class="ulaz" type="number" id="number" placeholder="" name="number" autocomplete="on" min="20" max="50">
  45.             <br>
  46.              <label for="range">Slider: </label>
  47.             <input class="ulaz" type="range" id="range" placeholder="" name="range" autocomplete="on">
  48.              <br>
  49.              <label for="boja">Boja: </label>
  50.             <input class="ulaz" type="color" id="color" placeholder="" name="color" autocomplete="on">
  51.             <br>
  52.              <label for="textArea">Napomena: </label>
  53.             <textarea cols="35" rows="5" maxlength="100"></textarea>
  54.                 </fieldset>
  55.               Fakultet
  56.         <select name="fax" >
  57.             <optgroup label="IT">
  58.             <option value="matf" selected>MATF</option>
  59.             <option value="etf">ETF</option>
  60.             <option value="raf">RAF</option>
  61.             <option value="ftn">FTN</option>
  62.                 </optgroup>
  63.             <optgroup label="Picke">
  64.                 <option value="matf">Dzon Nezbit</option>
  65.             <option value="etf">Singidunum</option>
  66.             </optgroup>
  67.         </select>
  68.         <input type="text" list="list">
  69.         <datalist id="list">
  70.           <option value="matf">MATF</option>
  71.             <option value="etf">ETF</option>
  72.             <option value="raf">RAF</option>
  73.             <option value="ftn">FTN</option>
  74.         </datalist>
  75.        
  76.         <br>
  77.         <label>godina studija</label>
  78.         1<input type="radio" name="g" value="1">
  79.         2<input type="radio" name="g" value="2" checked>
  80.         3<input type="radio" name="g" value="3">
  81.         4<input type="radio" name="g" value="4">
  82.        
  83.         <br>
  84.         <label>Oblasti interesovanja</label>
  85.         <br>
  86.         <input type="checkbox" name="it"> IT <br>
  87.         <input type="checkbox" name="p" checked> Programiranje <br>
  88.         <input type="checkbox" name="1337"> Ethical Hacking <br>
  89.         <input type="button" value="obicno" onclick="">
  90.         <input type="submit" value="salji">
  91.         <input type="reset" value="brisi">
  92.             <br>
  93.         <progress max="100" value="70">70%</progress>
  94.         </form>
  95.        
  96.         <script type="text/javascript">
  97.             var ime = document.getElementById("ime").textContent;
  98.             console.log(ime);
  99.             var tag = document.getElementsByTagName("ime");
  100.             window.alert("Imam jedno pitanje za tebe");
  101.             var x = confirm("Da li si ti picka?");
  102.             if(x){
  103.                 window.alert("Bravo mikicu!")
  104.                 window.alert("Ti si picka");
  105.                 window.alert("HAHAHA");
  106.             }
  107.             else{
  108.                 window.alert("Nema bezanija, ti jesi picka");
  109.                window.alert("HHAHAHAHHAHAH");
  110.             }
  111.            
  112.         </script>
  113.          
  114.     </body>
  115. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement