HTML STRUCTURE: USING LISTS

Thứ Ba, 14 tháng 7, 2015 | Đăng: Son
The <ol> and <ul> both represent a list of items. They differ in the way that, with the <ol> element, the order is meaningful. As a rule of thumb to determine which one to use, try changing the order of the list items; if the meaning is changed, the <ol> element should be used, else the <ul> is adequate

1. Ordered HTML Lists
  • The <ol> tag defines an ordered list. An ordered list can be numerical or alphabetical. 
  • Use the <li> tag to define list items.
2. Unorder HTML Lists
  • The <ul> tag defines an unordered (bulleted) list. 
  • Use the <ul> tag together with the <li> tag to create unordered lists.
3. As usual, HTML allows nested List for dynamic purpose of users.
4. Programmer can leave a comment with tags: <!–  comment ->>. It’s a good debug and readable tools.
5. For create a personal style for displaying text, image…, HTML enable us to change style with attributes along with tag syntax. General syntax is: <tagname style =”defined elements” >. ex: <p style = “font-size: 10px”. The attribute separated with semi-comma ” ; “.
  • font-size: size px.
  • font-color: color.
  • font-family: font name.
  • background-color: color.
  • text-align: position.
6. To adjust display of text, HTML contains some tags:
  • BOLD text: <strong> </strong> TAG.
  • Italic text: <em> </em> TAG.

Mail Facebook Google twitter
Từ khóa: HTML STRUCTURE: USING LISTS

HTML STRUCTURE: USING LISTS

Bài viết HTML STRUCTURE: USING LISTS
HTML STRUCTURE: USING LISTS HTML STRUCTURE: USING LISTS
910 1

Bài viết HTML STRUCTURE: USING LISTS