Advertisement
Guest User

FORME I TABELEeeee

a guest
Dec 9th, 2018
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 17.90 KB | None | 0 0
  1. <DOCTYPE html>
  2. <head>
  3. <title>Web tabele i forme</title>
  4. <meta charset = "UTF-8">
  5. </head>
  6.     <body>
  7.     <p>width ="300" širina 300 px</p>
  8.  
  9.         <table width ="300" border="4" cellspacing ="1" cellpadding = "5">
  10.     <tr>
  11.         <td>1</td>
  12.         <td  colspan = "2">2</td>
  13.     </tr>
  14.     <tr>
  15.         <td  colspan = "2">4</td>
  16.         <td>6</td>
  17.     </tr>
  18.         <tr>
  19.         <td>7</td>
  20.         <td>8</td>
  21.         <td rowspan = "2">9</td>
  22.        
  23.     </tr>
  24.         <tr>
  25.                 <td rowspan = "2">10</td>
  26.         <td>11</td>
  27.  
  28.  
  29.     </tr>
  30.         <tr>
  31.  
  32.         <td>14</td>
  33.         <td>15</td>
  34.     </tr>
  35.    
  36.     ---------------------------------------------------------------------------------------------
  37.     <p>cellpadding se dodaje širinama kolona, širina kolone se prenosi na celu vertikalu</p>
  38.     <p>align atribut za td elemente po default-u ima vrednost left, a za th ćelije zaglavlja center</p>
  39.  
  40.         <table border="4" cellspacing ="5" cellpadding = "2" bgcolor="red">
  41.         <caption>Naslov tabele</caption>
  42.           <tr bgcolor = "yellow">
  43.             <th width ="100" align = "left">1</th>
  44.             <th width ="100" >2</th>       
  45.             <th width ="300" >3</th>
  46.           </tr>
  47.           <tr>
  48.             <td rowspan= "2" colspan = "2" bgcolor="blue">4</td>
  49.                    
  50.             <td align="right">6</td>
  51.           </tr>
  52.           <tr> 
  53.             <td align="center" bgcolor ="#FF9900">9</td>
  54.           </tr>
  55.  
  56.         </table>
  57.  
  58. -------------------------------------------------------------------------------------------
  59. <style>
  60.             table, th, td {
  61.                 border: 1px solid black;
  62.                 border-collapse: collapse;
  63.             }
  64.            
  65.             th, td {
  66.                 padding: 5px;
  67.             }
  68.            
  69.             th {
  70.                 text-align: left;
  71.             }
  72.  
  73.         </style>
  74.         ide na pocetku vazi za sve
  75.  
  76.         ------------------------------------------------------------------
  77.        
  78.        
  79.         <table id="t01">
  80.     <tr>
  81.         <td>1</td>
  82.         <td  colspan = "2">2</td>
  83.     </tr>
  84.     <tr>
  85.         <td  colspan = "2">4</td>
  86.         <td>6</td>
  87.     </tr>
  88.         <tr>
  89.         <td>7</td>
  90.         <td>8</td>
  91.         <td rowspan = "2">9</td>
  92.        
  93.     </tr>
  94.         <tr>
  95.                 <td rowspan = "2">10</td>
  96.         <td>11</td>
  97.  
  98.  
  99.     </tr>
  100.         <tr>
  101.  
  102.         <td>14</td>
  103.         <td>15</td>
  104.     </tr>
  105.         -*---------------------------------------------------------
  106.                 <style>
  107.             table {
  108.                 width:100%;
  109.             }
  110.            
  111.             table, th, td {
  112.                 border: 1px solid black;
  113.                 border-collapse: collapse;
  114.             }
  115.            
  116.             th, td {
  117.                 padding: 5px;
  118.                 text-align: left;
  119.             }
  120.            
  121.             table#t01 {
  122.                 width: 100%;    
  123.                 background-color: #f1f1c1;
  124.             }
  125.            
  126.             table#t01 tr:nth-child(even) {
  127.                 background-color: #eee;
  128.             }
  129.            
  130.            
  131.             table#t01 tr:nth-child(odd) {
  132.                background-color:#fff;
  133.             }
  134.            
  135.             table#t01 th    {
  136.                 background-color: black;
  137.                 color: white;
  138.             }
  139.  
  140.         </style>
  141.        
  142.     </head>
  143.     <body>
  144.  
  145.         <table style="width:100%">
  146.           <tr>
  147.             <th>Ime</th>
  148.             <th>Prezime</th>       
  149.             <th>Poeni</th>
  150.           </tr>
  151.           <tr>
  152.             <td>Petar</td>
  153.             <td>Petrović</td>     
  154.             <td>50</td>
  155.           </tr>
  156.           <tr>
  157.             <td>Sima</td>
  158.             <td>Simić</td>    
  159.             <td>94</td>
  160.           </tr>
  161.           <tr>
  162.             <td>Laza</td>
  163.             <td>Lazić</td>    
  164.             <td>80</td>
  165.           </tr>
  166.         </table>
  167.  
  168.         <br>
  169.  
  170.         <table id="t01">
  171.           <tr>
  172.             <th>Ime</th>
  173.             <th>Prezime</th>       
  174.             <th>Poeni</th>
  175.           </tr>
  176.           <tr>
  177.             <td>Petar</td>
  178.             <td>Petrović</td>     
  179.             <td>50</td>
  180.           </tr>
  181.           <tr>
  182.             <td>Sima</td>
  183.             <td>Simić</td>    
  184.             <td>94</td>
  185.           </tr>
  186.           <tr>
  187.             <td>Laza</td>
  188.             <td>Lazić</td>    
  189.             <td>80</td>
  190.           </tr>
  191.         </table>
  192.         ----------------------------------------------------------------------------------------
  193.         ---------------------------------------------------------------------------------------
  194.         -----------------------------------------------------------------------------------------
  195.                 <form action ="skripta.php" method ="post"  name="form1" id ="form1"   >
  196.             <fieldset>
  197.                 <legend>Licni podaci:</legend>
  198.                
  199.                 <label for ="ime">Vaše ime:</label>
  200.                 <input type ="text" name="ime" id ="ime"/>
  201.                
  202.                 <label for ="prezime">Vaše prezime:</label>
  203.                 <input type ="text" name="prezime" id ="prezime"/>         
  204.             </fieldset>
  205.            
  206.             <fieldset>
  207.                 <legend>Logovanje:</legend>
  208.                
  209.                 <label for ="kor_ime">Vaše korisničko ime:</label>
  210.                 <input type ="text" name="kor_ime" id ="kor_ime"/>
  211.                
  212.                 <label for ="lozinka">Vaša lozinka:</label>
  213.                 <input type ="p" name="lozinka" id ="lozinka"/>
  214.                
  215.             </fieldset>
  216.            
  217.             <input type = "checkbox"  name ="mailovi" id="mailovi" value="mailovi"/>
  218.             <label for ="mailovi">Želim da primam obaveštenja.</label>
  219.             <input type = "submit" name ="submit" id ="submit" value ="Snimi informacije"/>
  220.             -------------------------------------------------------------------------------
  221.             <body style="font-size:16px">
  222.  
  223.  
  224. <br>
  225.     <form action="test.php" method="GET">
  226.       <select name="automobili">
  227.         <option value="volvo">Volvo</option>
  228.         <option value="sab">Sab</option>
  229.         <option value="fiat" selected>Fiat</option>
  230.         <option value="audi">Audi</option>
  231.       </select>
  232.       <br><br>
  233.       <input type="submit" value = "Klikni me">
  234.     </form>
  235. ------------------------------------------------------------------------------<br>
  236.  
  237.     <form action ="skripta.php" method ="post"  name="form1" id ="form1"   >
  238.             <fieldset>
  239.                 <legend>Licni podaci:</legend>
  240.                
  241.                 <table>
  242.                     <tr>
  243.                         <td width = "140">
  244.                             <label for ="ime">Vaše ime:</label>
  245.                         </td>
  246.                         <td>
  247.                             <input type ="text" name="ime" id ="ime"/>
  248.                         </td>
  249.                     </tr>
  250.                     <tr>
  251.                         <td>
  252.                             <label for ="prezime">Vaše prezime:</label>       
  253.                         </td>
  254.                         <td>
  255.                             <input type ="text" name="prezime" id ="prezime"/> 
  256.                         </td>
  257.                     </tr>
  258.                    
  259.                 </table>       
  260.                        
  261.             </fieldset>
  262.            
  263.             <fieldset>
  264.                 <legend>Logovanje:</legend>
  265.                
  266.                 <table>
  267.                     <tr>
  268.                         <td width = "140">
  269.                             <label for ="kor_ime">Vaše korisničko ime:</label>
  270.                         </td>
  271.                         <td>
  272.                             <input type ="text" name="kor_ime" id ="kor_ime"/>
  273.                         </td>
  274.                     </tr>
  275.                     <tr>
  276.                         <td>
  277.                             <label for ="lozinka">Vaša lozinka:</label>   
  278.                         </td>
  279.                         <td>
  280.                             <input type ="p" name="lozinka" id ="lozinka"/>
  281.                         </td>
  282.                     </tr>
  283.                    
  284.                 </table>       
  285.                
  286.             </fieldset>
  287.            
  288.             <br /><br />
  289.            
  290.             <input type = "checkbox"  name ="mailovi" id="mailovi" value="mailovi"/>
  291.             <label for ="mailovi">Želim da primam obaveštenja.</label>
  292.            
  293.             <br /><br />
  294.             <input type = "submit" name ="submit" id ="submit" value ="Snimi informacije"/>
  295.            
  296.            
  297.         </form>
  298.         ---------------------------------------------------------------------------
  299.         -------------------------------------------------------------------------------
  300.                 <form action="test.php">
  301.           <textarea name="poruka" rows="10" cols="30">
  302. Neki tekst....
  303.           </textarea>
  304.           <br><br>
  305.           <input type="submit" value = "Klikni me !">
  306.         </form>
  307.        
  308.         -----------------------------------------------------------------
  309.         -------------------------------------------------------------------------------------------
  310.         --------------------------------------------------------------------------------------------
  311.        
  312.                 <button type="button" onclick="alert('Zdravo svete!')">Klikni me!</button>
  313.  
  314.        
  315.         -----------------------------------------------------------------
  316.         -------------------------------------------------------------------------------------------
  317.         --------------------------------------------------------------------------------------------
  318.         <form action="test.php" method="get">
  319.    
  320.       <input list="browsers" name="browser">
  321.      
  322.           <datalist id="browsers">
  323.             <option value="Internet Explorer">
  324.             <option value="Firefox">
  325.             <option value="Chrome">
  326.             <option value="Opera">
  327.             <option value="Safari">
  328.           </datalist>
  329.      
  330.       <input type="submit" value = "Izaberi">
  331.      
  332.     </form>
  333.     -------------------------------------------------------------------------------------------------------
  334.     ------------------------------------------------------------------------------------------
  335.         <body style="font-size:16px">
  336.  
  337.     <form action="test.asp" oninput="x.value=parseInt(a.value)+parseInt(b.value)">
  338.       0
  339.       <input type="range"  id="a" name="a" value="50">
  340.       100 +
  341.       <input type="number" id="b" name="b" value="50">
  342.       =
  343.       <output name="x" for="a b"></output>
  344.       <br><br>
  345.       <input type="submit">
  346.     </form>
  347.     ------------------------------------------------------------------------------------------
  348.     ---------------------------------------------------------------------------------------------
  349.         PASSWORD
  350.        
  351.        
  352.        
  353.                 <form action="test.php" method= "GET">
  354.        
  355.             Korisničko ime:<br>
  356.             <input type="text" name="userid" >
  357.             <br>
  358.             Lozinka:<br>
  359.             <input type="password" name="psw">
  360.             <br>
  361.             <input type="submit" value = "Potvrdi">
  362.            
  363.         </form>
  364.        
  365.        
  366.         -----------------------------------------------------------------------------------
  367.         -------------------------------------------------------------------------------------
  368.         CHECKBOX
  369.        
  370.        
  371.                 <form action = "test.php" method = "get">
  372.        
  373.             <input type="checkbox" name="vozilo1" value="Bicikla" checked> Ja imam biciklu
  374.             <br>
  375.             <input type="checkbox" name="vozilo2" value="Auto"> Ja imam auto
  376.             <br>
  377.             <input type ="submit" value = "Izaberi">
  378.            
  379.             <br>
  380.  
  381.         </form>
  382.         ---------------------------------------------------------------------------------
  383.         --------------------------------------------------------------------------------
  384.         NUMBER
  385.         NUMBER
  386.                 <form action="test.php" method= "get">
  387.           Broj izmedju 1 i 5:
  388.           <input type="number" name="quantity" min="1" max="5" required>
  389.           <br>
  390.           Brojevi od 0 do 100 sa korakom od 10:
  391.           <input type="number" name="points" min="0" max="100" step="10" value="30">
  392.           <br>
  393.           <input type ="submit" value="Unesi">
  394.                 ---------------------------------------------------------------------------------
  395.         --------------------------------------------------------------------------------
  396.                 ---------------------------------------------------------------------------------
  397.         --------------------------------------------------------------------------------
  398.         DATUMI
  399.         DATUMI
  400.                 <form action = "test.php" action = "get">
  401.           Rodjendan:
  402.           <input type="date" name="bday">
  403.           <br>
  404.           Unesi datum pre: 1980-01-01:
  405.           <input type="date" name="bday" max="1979-12-31" value ="1978-12-10"><br>
  406.           Unesi datum posle: 2000-01-01:
  407.           <input type="date" name="bday" min="2000-01-02"><br>
  408.          
  409.           <input type="submit" value ="Klikni">
  410.    
  411.         </form>
  412.        
  413.                         ---------------------------------------------------------------------------------
  414.         --------------------------------------------------------------------------------
  415.                 ---------------------------------------------------------------------------------
  416.         --------------------------------------------------------------------------------
  417.         BOJA
  418.        
  419.                 <form action = "test.php" method = "get">
  420.           Izaberite boju:
  421.           <input type="color" name="favcolor">
  422.           <input type ="submit">
  423.         </form>
  424.        
  425.                                 ---------------------------------------------------------------------------------
  426.         --------------------------------------------------------------------------------
  427.                 ---------------------------------------------------------------------------------
  428.         --------------------------------------------------------------------------------
  429.        
  430.         RANGE
  431.             <body style="font-size:16px">
  432.  
  433.         <form action ="test.php" method ="get">
  434.           <input type="range" name="points" min="0" max="10" value ="8">
  435.           <br>
  436.           <input type = "submit" value = "Klikni">
  437.          
  438.         </form>
  439.                                         ---------------------------------------------------------------------------------
  440.         --------------------------------------------------------------------------------
  441.                 ---------------------------------------------------------------------------------
  442.         --------------------------------------------------------------------------------
  443.        
  444.         MONTH WEEK
  445.        
  446.        
  447.                 <form>
  448.        
  449.           Izaberite datum (mesec i godina):
  450.           <input type="month" name="bdaymonth">
  451.           <br>
  452.           Izaberite nedelju:
  453.           <input type="week" name="week_year">
  454.             </form>
  455.          
  456.                                                 ---------------------------------------------------------------------------------
  457.         --------------------------------------------------------------------------------
  458.                 ---------------------------------------------------------------------------------
  459.         --------------------------------------------------------------------------------
  460.        
  461.         TIME
  462.         <form action ="test.php">
  463.       Vreme:
  464.       <input type="time" name="usr_time">
  465.       <input type ="submit">
  466.  
  467.     </form>
  468.          
  469.  
  470.                                                         ---------------------------------------------------------------------------------
  471.         --------------------------------------------------------------------------------
  472.                 ---------------------------------------------------------------------------------
  473.         --------------------------------------------------------------------------------
  474.         EMAIL
  475.        
  476.        
  477.        
  478.         <form action = "test.php" method="get">
  479.       E-mail:
  480.       <input type="email" name="mail">
  481.       <br>
  482.       <br>
  483.       <input type = "submit" value ="Potvrdi">
  484.      
  485.     </form>
  486.    
  487.                                                             ---------------------------------------------------------------------------------
  488.         --------------------------------------------------------------------------------
  489.                 ---------------------------------------------------------------------------------
  490.         --------------------------------------------------------------------------------
  491.         URL
  492.        
  493.             <body style="font-size:16px">
  494.  
  495.         <form action = "test.php" method = "get">
  496.           Unesite web sajt:
  497.           <input type="url" name="homepage">
  498.           <br>
  499.           <input type ="submit" value ="Unesi">
  500.          
  501.         </form>
  502.                                                                                                     ---------------------------------------------------------------------------------
  503.         --------------------------------------------------------------------------------
  504.                 ---------------------------------------------------------------------------------
  505.         --------------------------------------------------------------------------------
  506.         OBRAZAC
  507.    
  508.             <p>Neki obrazac:</p>
  509.  
  510.         <p>
  511.             <var>E</var> = <var>m</var>
  512.             <var>v</var>
  513.             <sup>2</sup>
  514.         </p>
  515.        
  516.         -----------------------------------------------------------------------------------------------------
  517.         -------------------------------------------------------------------------------------------------------
  518.         DOMACI
  519.         <!DOCTYPE html>
  520. <html>
  521.     <head>
  522.     </head>
  523.     <body>
  524.         <table width="100%">
  525.             <tr>
  526.                 <th colspan="4">1. Licni podaci</th>
  527.                
  528.                
  529.                
  530.                 <th colspan="2">2. Podaci za prijavu</th>
  531.                
  532.             </tr>
  533.             <tr>
  534.                 <td>Pol*</td>
  535.                 <td colspan="3"><form>Gdin<input type="radio"name="mpol">Gdja<input type="radio"name="zpol"></form></td>
  536.                
  537.                
  538.                 <td>Lozinka*</td>
  539.                 <td><input type="text"name="lozinka"></td>
  540.             </tr>
  541.             <tr>
  542.                 <td>Titula</td>
  543.                 <td colspan="4"><input type="text"name="titula"></td>
  544.                
  545.                
  546.                
  547.                 <td><p>(8-20 znakova ukljucuju brojeve i slova)</p></td>
  548.             </tr>
  549.             <tr>
  550.                 <td>Ime*</td>
  551.                 <td colspan="3"><input type="text"name="ime"></td>
  552.                
  553.                
  554.                 <td>Jacina lozinke</td>
  555.                 <td><input type="text"name="jacina"></td>
  556.             </tr>
  557.             <tr>
  558.                 <td>Prezime*</td>
  559.                 <td colspan="3"><input type="text"name="prezime"></td>
  560.                
  561.                
  562.                 <td>Potvrdite lozinku*</td>
  563.                 <td><input type="text"name="potLozinka"></td>
  564.             </tr>
  565.             <tr>
  566.                 <td>Ulica i broj*</td>
  567.                 <td colspan="3"><input type="text"name="adresa"></td>
  568.                
  569.                
  570.                 <td>Sigurnosno pitanje*</td>
  571.                 <td>
  572.                     <form>
  573.                         <select name="opcija">
  574.                         <option value="Odaberite pitanje"select="selected">Odaberite pitanje!</option>
  575.                         <option value="Odaberite pitanje1">Odaberite pitanje!1</option>
  576.                         <option value="Odaberite pitanje2">Odaberite pitanje!2</option>
  577.                         <option value="Odaberite pitanje3">Odaberite pitanje!3</option>
  578.                         </select>
  579.                     </form>
  580.                 </td>
  581.             </tr>
  582.             <tr>
  583.                 <td>Broj poste i mesto*</td>
  584.                 <td><input type="text"name="brposte"></td>
  585.                 <td colspan="2"><input type="text"name="mesto"></td>
  586.                
  587.                 <td>Vas odgovor*</td>
  588.                 <td><input type="text"name="odgovor"></td>
  589.             </tr>
  590.             <tr>
  591.                 <td>Drzava*</td>
  592.                 <td colspan="5">
  593.                     <form>
  594.                     <select name="drzava">
  595.                     <option value="Srbija">Srbija</option>
  596.                     <option value="Srbija">Srbija</option>
  597.                     <option value="Srbija">Srbija</option>
  598.                     </select>
  599.                     </form>
  600.                 </td>
  601.                
  602.                
  603.                
  604.                
  605.             </tr>
  606.             <tr>
  607.                 <td>Valuta*</td>
  608.                 <td colspan="3">
  609.                 <form>
  610.                     <select name="valuta">
  611.                     <option value="valuta">Evro</option>
  612.                     <option value="valuta">Dolar</option>
  613.                     <option value="valuta">Dinar</option>
  614.                     </select>
  615.                     </form>
  616.                 </td>
  617.                
  618.                
  619.                 <td colspan="2"><input type="checkbox" name="vehicle" value="Bike">Zapamti prijavu</td>
  620.                
  621.             </tr>
  622.             <tr>
  623.                 <td>Datum rodjenja*</td>
  624.                 <td>
  625.                     <form>
  626.                     <select name="valuta">
  627.                     <option value="valuta">1</option>
  628.                     <option value="valuta">2</option>
  629.                     <option value="valuta">3</option>
  630.                     </select>
  631.                     </form>
  632.                 </td>
  633.                 <td>
  634.                     <form>
  635.                     <select name="valuta">
  636.                     <option value="valuta">1</option>
  637.                     <option value="valuta">2</option>
  638.                     <option value="valuta">3</option>
  639.                     </select>
  640.                     </form>
  641.                 </td>
  642.                 <td>
  643.                     <form>
  644.                     <select name="valuta">
  645.                     <option value="valuta">1</option>
  646.                     <option value="valuta">2</option>
  647.                     <option value="valuta">3</option>
  648.                     </select>
  649.                     </form>
  650.                 </td>
  651.                 <td colspan="2"><input type="checkbox" name="vehicle" value="Bike">Prihvatam...</td>
  652.                
  653.             </tr>
  654.             <tr>
  655.                 <td>Gmail</td>
  656.                 <td colspan="5"><input type="text"name="mejl"></td>
  657.                
  658.                
  659.                
  660.                
  661.             </tr>
  662.             <tr>
  663.                 <td>Broj mobilnog</td>
  664.                 <td><input type="text"name="+381"value="+381"></td>
  665.                 <td><input type="text"name="tel1"></td>
  666.                 <td colspan="3"><input type="text"name="tel2"></td>
  667.                
  668.                
  669.             </tr>
  670.             <tr>
  671.                 <td>Telefon</td>
  672.                 <td><input type="text"name="+3812"value="+381"></td>
  673.                 <td><input type="text"name="tel21"></td>
  674.                 <td colspan="3"><input type="text"name="tel22"></td>
  675.                
  676.                
  677.             </tr>
  678.         </table>
  679.     </body>
  680.  
  681. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement