A good method to explain the anatomy of a web page is by describing Harry.
Harry is strong man with a big head, muscular body. His bravery has earned him the title of a Lord. To describe Harry, one would say that he has:
If a web page is like Lord Harry, one would describe it then as follows: The page speaks HTML, has a head, in which you could see its nobility title and finally a body. These anatomy elements build the foundation of every web page.
And because elements are finite (so can't just have an infinite head that would look ridiculous), we have to define their start and end. We do so simply by adding a forward slash "/" before the element. And to make everything solid, we encompass these elements in special characters ("<" ">") and call them tags. So that the bare minimum of a webpage looks something like that:
Harry is strong man with a big head, muscular body. His bravery has earned him the title of a Lord. To describe Harry, one would say that he has:
- a head
- a title and
- a body
If a web page is like Lord Harry, one would describe it then as follows: The page speaks HTML, has a head, in which you could see its nobility title and finally a body. These anatomy elements build the foundation of every web page.
And because elements are finite (so can't just have an infinite head that would look ridiculous), we have to define their start and end. We do so simply by adding a forward slash "/" before the element. And to make everything solid, we encompass these elements in special characters ("<" ">") and call them tags. So that the bare minimum of a webpage looks something like that: