HTML
Ordered lists
ordered list is simply a list that is numbered:
exemple:
<ol>
<li><li>
<li><li>
</ol>
Unordered lists
- 1.First, we open our list with an unordered list
<ul>
tag - 2.For each item we wish to add to the list, we use a list item tag
<li>
with text in between - 3.We then tell the browser we are done with our list by calling our closing
</ul>
tag - Lists inside a list
- if you have an ordered list and you want have other list inside it.you can nested it with together.
- -you've been nesting tags already. When you nest tags, the last tag you open is the first one you close.
- ex:<ol>
- <li>
- <ul>
- <li></li>
- </ul>
- </li>
- </ol>
- Making comments
- 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.
- <!-- -->
- Font size
- 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
. - ex <p style="font-size :5px"></p>
- Font color
- 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.
- Font family
- We want to decide what font type to use. We can do this using
font-family
- ex <p style="font-family: font you want"></p>
- Background color
- can use the style attribute and set it equal to
"background-color: favorite color
to change the color of the webpage's background. - Aligning the texthelps you align word
- ex:<p style="text-align:centre or right or left "></p>
- Strong words!
- made bold text
- ex <strong>aaaaaaaaa</strong>
- Emphasize words!
- made emphasize text
- ex : <em>aaaaaaaa</em>
Không có nhận xét nào:
Đăng nhận xét