Monday, April 9, 2012

HTML

HTML Structure
HTML, or hypertext markup language, is very simple to learn and very simple to use. HTML is used in most
modern websites. HTML has two basic forms:
<name attribute1="value1" attribute2="value2">Content of 'name'</name>
and
<name attribute1="value1" attribute2="value2">
After you learn the basic form of HTML, you are ready to do some HTML coding. And just so you know, the
capitalization of the name's of the basic structure and the attributes does not matter, while the capitalization of the
values and contents of them do.
HTML pages always start with a DTD, or document type definition. This allows the web-browser to determine what
type of HTML you are using as well as what language the characters are in. The type of DTD that I would
recommend is:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
After the DTD, you would continue with the HTML tag, like so:
<HTML>
...
</HTML>
HTML pages are broken into two main sections: the HEAD and the BODY, both contained within the HTML tags.
The head contains the title and sometimes meta tags. The body contains the main page that everyone sees. A typical
website looks something like this:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
...
</HEAD>
<BODY>
...
</BODY>
</HTML>

No comments:

Post a Comment