Q14.webp
Văn Khang

Q14.webp

Kizspy | Question: 14
(Choose 1 answer)
What statement do you insert the 3rd code line to get a list of images in p tag?
1. function demo()
2.
{
3.
4.
}
<p id="abc">
<img src="h1.jpg">
<img src="h2.jpg">
<img src="h3.jpg">
</p>
A. var list "abc".getElementsByTagName("img")
B. var list=document.getElementById("abc").getElementsByTagName("img")
C. var list=document.getElementById("abc").getElementsByClassName("img")
D. var list=document.getElementById("abc").getElementsByName("img")

Thông tin

Category
WED201c
Thêm bởi
Văn Khang
Ngày thêm
Lượt xem
1,462
Lượt bình luận
5
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom