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.
- The <ul> tag defines an unordered (bulleted) list.
- Use the <ul> tag together with the <li> tag to create unordered lists.
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.
- BOLD text: <strong> </strong> TAG.
- Italic text: <em> </em> TAG.
0 nhận xét