tritue.edu.vn


Bài 6.3. Phần tử input

Trong bài này chúng ta sẽ tìm hiểu về phần tử input để tạo giao diện nhập dữ liệu trong form

Cú pháp chung

< input type="..." value="..." style="..." />

 



VD về radio input

Copy
         

<form>

  <h3>Hãy chọn thành phố nơi bạn sinh sống --- dammio.com</h3>

  <input type="radio" name="city" value="hanoi" checked> Hà Nội<br>

  <input type="radio" name="city" value="danang"> Đà Nẵng<br>

  <input type="radio" name="city" value="saigon"> Sài Gòn<br>

  <input type="radio" name="city" value="khac"> Khác

</form>


VD thẻ input

Copy
         
  • <input type="button" value="OK" />
  • <input type="checkbox" />
  • <input type="color" />
  • <input type="date" />
  • <input type="datetime-local" />
  • <input type="email" />
  • <input type="file" />
  • <input type="hidden" />
  • <input type="image" />
  • <input type="month" />
  • <input type="number" />
  • <input type="password" />
  • <input type="radio" />
  • <input type="range" />
  • <input type="reset" />
  • <input type="search" />
  • <input type="submit" />
  • <input type="tel" />
  • <input type="text" />
  • <input type="time" />
  • <input type="url" />



Link chia sẻ bài viết
Copy
            https://tritue.edu.vn/tuecode/tracnghiem30/index.php/baiviet/post/view/id/204?id=204         

Bài viết liên quan