
The
basic, prefixed framework of
HTML or
HTM documents {similar to writing a letter}:
<!DOCTYPE HTML ____> {Describes the version of HTML you're using}
<HTML> {Beginning of HTML code}
<HEAD> {Contains data about the document, including the title and scripts}
<TITLE> {What appears on the Title bar; the one for this page should be 'HTML Tags'}
</TITLE>
</HEAD>
<BODY> {Where you write the HTML code that a browser converts into a web page}
</BODY>
</HTML>
HTML tags are the essence of the Hypertext Markup Language, because
the basic framework as well as everything that one writes on an HTML
document is contrived and modified by the use of tags. Though there are a wide
variety of tags, they all begins with a less than sign'<' and closed with
a greater than sign '>'. In addition, most comes in pairs:
<an open tag command> the element that you wish the command to apply
to </an endtag>. The end tag always has a backslash (/), which is read as end
of something. In each tag, you may also
indicate certain attributes (characteristics) that you want the element to
display, such as desired width, size or alignment; and you do this by
writing: "the attribute name =
the value of the attribute"
after the tag command but before the '>'.
For
example: <H2 align=right> text </H2>
The above means that the
size of the text is heading 2 and the text is aligned to the right side
of the page.
** Just a quick note before
you begin creating your HTML or HTM documents:**
Tag and attribute names are not case-sensitive:
<h2 align=right>
is read the same as <H2 ALIGN=RIGHT>
However, if you make
a reference to an item, like another html page or even another
part of the same html page, capitalized letters as well as spaces are
significant. So as a precaution, you might want to keep everything lowercased and stuck
together. However, if an item has a space in its name, then
please remember to replace the space with an underscore '_' in your html
code. Also, it's beneficial to organize and label one's files in a way
that one will easily recollect their names and location.
|