Chủ Nhật, 12 tháng 7, 2015

Bai 2: Task2 HTML

                                     HTML

Ordered lists
ordered list is simply a list that is numbered:
exemple:
<ol>
 <li><li>
<li><li>
</ol>
Unordered lists

  1. 1.First, we open our list with an unordered list <ul> tag
  2. 2.For each item we wish to add to the list, we use a list item tag <li>with text in between
  3. 3.We then tell the browser we are done with our list by calling our closing</ul> tag
  4. Lists inside a list
  5. if you have an ordered list and you want have other list inside it.you can nested it with together.
  6. -you've been nesting tags already. When you nest tags, the last tag you open is the first one you close. 
  7. ex:<ol>
  8. <li>
  9.    <ul>
  10.      <li></li>
  11. </ul>
  12. </li>
  13. </ol>
  14. Making comments
  15. You can include little notes in your HTML code that the browser won't display. But it will be in the code to help you remember why you did certain things or  for other people know that code you made.
  16. <!--   -->
  17. Font size
  18. Let's change the size of the text.you use the style attribute. We make it equal to font-size, followed by a colon, the size you want, and end it with px .
  19. ex  <p style="font-size :5px"></p>
  20. Font color
  21. To change the color of text, simply add the style attribute in the opening tag, then make the style equal to "color:favorite color and if you want to change the color and the size of the text? Simple! Just add a semi-colon between each bit. 
  22. Font family
  23. We want to decide what font type to use. We can do this using font-family

  24. ex <p style="font-family: font you want"></p>
  25. Background color
  26. can use the style  attribute and set it equal to "background-color: favorite color    to change the color of the webpage's background.
  27. Aligning the text
    helps you align word
  28. ex:<p style="text-align:centre or right or left "></p>
  29. Strong words! 
    1. made bold text
    2. ex <strong>aaaaaaaaa</strong>
    3. Emphasize words!
    4. made emphasize text
    5. ex :  <em>aaaaaaaa</em>


Không có nhận xét nào:

Đăng nhận xét