Build your own webpage

BDWS-Task2: HTML Structure – Using List Summary

  1. HTML Order List:
    • HTML allows us to open an Order List with tag: <ol> and certainly close with </ol>.
    • Inside Order list tag <ol>, it is possible to create a list with tag <li> </li> : It will display a list of element with ascending number order.
    • Each element separate by line and tag <li> </li>.
  2. HTML Unorder List:
    • HTML create an Unorder list for listing elements without order number, just bullet point. An Unorder List open and close with <ul> </ul> tag.
    • Behind Unorder list tag <ul>, we still use tag <li> </li> to display each elements.
  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.

Nhận xét