trước khi câu này bắt đầu.
This is the first card you see that doesn't need an end tag! These are called "empty tags".
Create headings to display the names of items:
: the biggest topic
(level 2 heading)
(heading level 3)
(heading level 4)
(smallest topic)
Learn how to create lists. There are many different ways to write listings on a website. Try out the following code styles and see which one you like. Note that a pair of tags will cover an entire list (e.g. tags
and
for "unordered lists"), while single items in the list are enclosed by another pair of tags, e.g.
.
Use this code to create bulleted lists:
Or use this code to create numbered lists:
Or use this code to create a list of term definitions:
Beautify your page with line breaks, horizontal lines, and images. Now it's time to try adding things other than text to your page. Try the following tags, or click on the links for more information. You'll need an online photo booking service to get a URL to link to the photo tag:
Add a line in HTML:
or
More photos:
Links to other locations on the site. You can also use this code to link to other pages and websites. But for now, since you don't have a website yet, we'll focus on 'anchors' (texts that contain links) or specific places on the page that you can link to:
Create an anchor with the tag at the location on the page you want to link to. Give it a distinctive and memorable name:Đây là văn bản bao quanh bằng anchor.
Use to link to those anchors or to another website:Viết đoạn văn bản hoặc hình ảnh được hiển thị như liên kết ở đây.
To link to an anchor on another website, add a # after the URL, followed by the name of the anchor. For example, http://www.wikihow.com/Learn-HTML#Advice will link to the Tips section of this page.
Learn about properties. Attributes placed inside the tags themselves add variation to the "element content" that lies between the start and end tags. They never stand alone. They are written as name="value" , where name is the name of the attribute (e.g. "color"), and value specifically describes the value of 'color' (e.g. " red" – red).
You've actually seen the parameters before, if you followed the instructions in the Basic HTML section above. Tags
use the src attribute , anchors use the name attribute , and links use the href attribute . Have you seen them following the format ___="___" ?
Experiment with tables in HTML. Creating tables requires the use of many different tags. Try playing around with these tags, or learn more about HTML tables in more detail.
Start with the table tags around the entire table:
Row tags surround each row's content:
Column headings in the first row:
Cells in the following rows:
Here's an example of how they work together:
Column 1: Month | Column 2: Money saved |
---|---|
January | $100 |
Learn mixed head tags. You've learned about tags, which appear at the beginning of every document. Besides tags, it can also include the following tag types:
Meta tags, are used to provide metadata about a web page. This data can be used by search engines as robots (automated programs) scour the internet to locate and list web pages. To make your site more visible to search engines, use one or more start tags (no end tags necessary), each with exactly one name attribute and one content attribute, for example: ; or
Tags are used to associate other files with the web page. It is often used to link to layers of CSS formatting created with a different coding style to transform your HTML page by adding color, text alignment, and more.
Tags