HTML content consists of tags. Tag is HTML code. Generally, tag come in pairs that is beginning and ending tag. For example, <html>, <head> and <body> are beginning tags and </html>, </head>, </body> are ending tags.
There are three main parts of HTML contents, including: <html>, <head> and <body> tag. Below is stucture of its:
|
Three Main Parts of HTML Contents |
First part is <html></html> tag, this part always inserted to HTML code. This HTML tag always contain <head> and <body> tag and also can contain the others tag, for example: <div>, <span> and others.
Second part is <head></head> tag, and also this part always inserted to HTML code. This HTML tag can contain the others tag, for example: <title></title>, <link></link> and others.
Third part is <body></body> tag, this part always inserted to HTML code. And Then, this HTML tag can contain the others tag, for example: <div></div>, <span></span> and others.
And also there are others tag, including:
- Comment Tag
- Break Tag
- Image Tag
- Map Tag
- Horizontal Tag
- Paragraph Tag
- Abbreviation Tag
- Emphasize Tag
- Keyboard Tag
- And others...
Notes:
1. Each beginnig tags must be ended, like the example below:
|
Correct Example |
|
Incorrect Example |
2. Remember, not all beginning tag must be ended. for example: <img />, <link /> and others. And then, for ended tag always inserted slash character (/) before bigger character (>).
No comments:
Post a Comment
Silahkan beri komentar tentang artikel kami...