Chapter 2
(This section will help you understand basics of HTML, language used to create Websites)
(b) Basic Terminology :
1) HTML Tags - To understand HTML more,we should know how to talk about HTML. You have already seen we have used < > s a lot.
2) HTML Elements - "HTML Tags" and "HTML Elements" are often misunderstood as same thing but both are very different things. "HTML Elements" consists of every thing between an Opening Tag and Closing Tag including the content between these tags.
<opening tag>..text content..</closing tag> - This whole unit together is called HTML Element.
1) HTML Tags - To understand HTML more,we should know how to talk about HTML. You have already seen we have used < > s a lot.
- Objects inside < >s are called tags.
- Mostly all tags come in pairs :
- Opening Tag- e.g. <html>
- Closing Tag- e.g. </html>
- You should treat tags as Parentheses, whenever you open one, you have to close it.
- Tags also have property to nest,so you should close it in right order as you have opened it.
<1st tag> <2nd tag>..Some Text..<2nd tag> <1st tag>
2) HTML Elements - "HTML Tags" and "HTML Elements" are often misunderstood as same thing but both are very different things. "HTML Elements" consists of every thing between an Opening Tag and Closing Tag including the content between these tags.
<opening tag>..text content..</closing tag> - This whole unit together is called HTML Element.
<p> This is an example of HTML Element </p>
0 comments:
Post a Comment