Kamis, 10 November 2016

BAB.5 pertemuan 4

kali ini saya akan memposting kode Select boxes with the &1t;optgroup>element
di web html
langsung saja tutorialnya
1. buka notepad
2. masukkan kode dibawah ini

<html xinlns="http://www.w3.org/1999/xhtml" lang="en"xml : lang="en">

<head>
 <title>Select boxes with the &1t;optgroup&gt;element</title>
</head>

<body>
<form action="http://www.example.org/info.asp"methood="get" name="frminfo">
 please select the product you are interested in:<br/>
 <select name="selinformation">
  <optgroup label="hardware">
    <option value="desktop">desktop computers</option>
    <option value="laptop">laptop computers</option>
 </optgroup>
 <optgroup label="software">
   <optional value="officesoftware">office software</option>
   <option value="games">games</option>
  </optgroup>
  <optgroup label="peripherals">
   <option value ="monitors">monitor</option>
   <option value ="input devices">input devices</option>
   <option value ="storage">storage</option>
  </optgroup>
 </select>
<br /><br /><input type="submit" value="submit" />
</form>
</body>
</html>




3. kemudian save dengan nama.html
maka hasilnya akan seperti gambar dibawah ini


selamat mencoba :)

Tidak ada komentar: