CH NG III DANH SÁCH... Ví : Learning HTML Monday Introduction to HTML Creating Lists Tuesday Creating Tables Inserting Images Wednesday Thursday Friday... Tuesday
Trang 1CH NG III
DANH SÁCH
Trang 2I DANH SÁCH KHÔNG CÓ TH T
(Unorder List -UL)
Cú pháp :
<UL Type= Shape1>
<LI Type= Shape 2> N i dung 1
<LI Type= Shape 2> N i dung 2
…
</UL>
– Shape 1, Shape 2: là bullet dòng
trong danh sách
– Shape 1 : toàn danh sách
Các shape:
– Circle : Bullet tròn,
– Square : Bullet vuông
– Disc : Bullet tròn không
Trang 3Ví :
<HTML>
<HEAD><TITLE>Learning HTML</TITLE>
<BODY>
<UL type=”Square”>
<LI>Monday <UL>
<LI>Introduction to HTML <LI>Creating Lists
</UL>
<LI>Tuesday <UL>
<LI>Creating Tables <LI>Inserting Images </UL>
<LI>Wednesday <LI>Thursday <LI>Friday
</UL>
</BODY>
</HTML>
Trang 4II DANH SÁCH CÓ TH T
(OrderList OL)
<OL Type=x Start =n >
<LI Type =x1 Value=m> N i dung 1
<LI Type =x1 Value=m> N i dung 2
…
</OL>
– A: C hoa
– a: C
– I: S la mã hoa
– i: S la mã
– 1: Cho
Trang 5– n: giá tiên danh sách
n
Ví 1:
<HTML>
<HEAD><TITLE>Learning HTML</TITLE>
<BODY>
<OL>
<LI>Monday
<OL>
<LI TYPE = i>Introduction to HTML <LI TYPE = i>Creating Lists
</OL>
Trang 6<LI>Tuesday
<OL TYPE = A>
<LI >Creating Tables <LI >Inserting Images
</OL>
<LI>Wednesday
<OL START = 5>
<LI >Creating Forms <LI >Working with Frames
</OL>
<LI>Thursday
<LI>Friday
</OL>
</BODY>
<HTML>
Trang 7Ví 2: Có 2 danh sách có và không có vào nhau
<HTML>
<HEAD><TITLE>Learning HTML</TITLE></HEAD>
<BODY>
<OL>
<LI>Monday
<UL>
<LI >Introduction to HTML <LI >Creating Lists
</UL>
<LI>Tuesday
<UL type=’Disc’>
<LI >Creating Tables <LI >Inserting Images
</UL>
<LI>Wednesday
<UL type=’cycle’>
<LI >Creating Forms <LI >Working with Frames
</UL>
</OL>
</BODY>
<HTML>
Trang 8III DANH SÁCH Đ NH NGHĨA
Trong HTML có tag dùng
danh sách dành riêng cho tra
, thích cho danh sách
dài
<DL>
<DD>Nhâp n i dung đ nh ngh a
…
</DL>
Trang 9<HTML>
<HEAD><TITLE>Learning HTML</TITLE></HEAD>
<BODY>
<DL>
<DT>Pixel
<DD> Short for picture element A pixel refers to the small dots that make up an image on the screen Pixel depth refers to the number of colours which may be displayed
<DT>Resolution
<DD>The quality of the display on a monitor The higher the resolution, the sharper the image The number of pixels that can be displayed on a screen defines resolution
<DT>Scanner
<DD> A hardware device that allows the user to make electronic copies of graphics or text
</DL>
</BODY>
</HTML>