HTML Elements and Tags
Article ID: KB101440
A quick review...
- Tags are words or abbreviations inside of angle brackets, such as
"<body>."
- Tags often come in pairs, with a start tag (<body>) and an
end tag (</body>).
- A start tag and end tag, with all the content in between them, make an
element.
Tag Attributes...
Tags can have additional information inside the angle brackets that help to
provide additional information about an element, called attributes.
For example, the paragraph tag is: <p>. The paragraph tag has some attributes
that can be defined. For example, you can define a paragraph to be
center-aligned by typing:
<p align="center">This paragraph is centered.</p>
"Align" is the name of the attribute. "Center" is the value of
the "align attribute." The value is usually enclosed in quotes ("). You can use
either double quotes (") or single quotes (').
Here's another example of a tag with defined attributes:
<body bgcolor="red" topmargin="0" leftmargin="0" rightmargin="0">
The BODY tag has several different types of attributes (even more than are
displayed here!). In the example above, we have the BGCOLOR (background color),
TOPMARGIN, LEFTMARGIN, and RIGHTMARGIN attributes defined.
Empty tags...
Some tags do not have a closing tag and are called empty tags. For
example, the tag to insert a line break is <br>. There is no need to
insert a closing tag for "<br>."
Are you ready to learn?
This concludes the intro to "Learn HTML." You now know the basics about the
Web and HTML. The next series of articles will cover different HTML elements and
how to put them together to make a web page!
Was this helpful?
Please rate this article:
Email address: (not required)
(Please provide your email address if you would like PixelMill support to follow-up with you about your comment. You're email address is NOT REQUIRED to submit a comment.)
Comments: (How can we improve this article?)
Clicking "Submit" will not clear this page.
link to this page:
http://www.pixelmill.com/support/al1046/kb101440.htm
permalink to this article:
http://www.pixelmill.com/support/kb101440.htm
Back to top