Computer >> Hướng Dẫn Máy Tính >  >> Lập Trình >> HTML

Thẻ <del> trong HTML


Thẻ <del> hiển thị văn bản đã xóa (gạch ngang). Thuộc tính:

  • cite – URL giải thích lý do xóa.
  • datetime – Thời gian xóa (định dạng ISO 8601).

Ví dụ

<!DOCTYPE html>
<html>
<body>
  <h2>Player Details with Reporting Time</h2>
  <p>These are the <ins>details with reporting time</ins></p>
  <form>
    <fieldset>
      <legend>New Details -</legend>
      Player - <input type="text"><br>
      Rank - <input type="number"><br>
      Email - <input type="email"><br>
      Reporting Time - <input type="time">
    </fieldset>
  </form>
  <p><del>All data captured before the World Cup.</del></p>
</body>
</html>

Dòng "All data captured before the World Cup." hiển thị gạch ngang.