JSFiddle - React, Tailwind, and code Playground

by pvtd264

HTML

<!-- 
1. Property nào của document lưu tham chiếu tới các <img> tags trong trang web
2. Sử dụng inspector để xem constructor function của một <img> có tên là gì
-->

<!--
1. Property của document lưu tham chiếu tới các <img> tags trong trang web là images (document.images)
-->

<!DOCTYPE html>
<html lang="vi">
  <head>
    <meta charset="UTF-8">
    <title>Document</title>
  </head>
  <body>
    <img src="https://placeimg.com/640/480/any" alt="ảnh 1">
    <img src="https://placeimg.com/640/480/any" alt="ảnh 2">
  </body>
</html>

JavaScript

console.log(document.images);