-
Notifications
You must be signed in to change notification settings - Fork 1
Basic Structure Explanation
richardjoo edited this page Oct 9, 2012
·
2 revisions
<HTML>
<HEAD>
<TITLE></TITLE>
</HEAD>
<BODY>
</BODY>
</HTML>
This is absolutely the basic HTML structure. This is something that you will have to remember.
First HTML is tag based language. Tag means the reserved words are wrapped around with the tags like < >
and it usually has starting and ending tags or sometimes tag itself.
For this example, <html></html> is a tag based telling this page is an HTML code.
as you can see it starts with <html> and ends with </html>
Any ending tags will start with </ to indicate that this is the ending tag.
Basic HTML structure consists of HTML, head, title, and body. Just like writing an essay, you need beginning and an end, identifying what it is such as title, and add the body.
Here, the big picture is HTML. So, the very first tag you see is HTML to wrap around your entire html page.
next, you use <HEAD> to store information like <TITLE> and <BODY> to store your main contents.