News:

GinGly.com - Used by 85,000 Members - SMS Backed up 7,35,000 - Contacts Stored  28,850 !!

Main Menu

HTML Tag structure

Started by fashion, Aug 11, 2008, 08:42 PM

Previous topic - Next topic

fashion


All tags have names. The tag name must be spelled correctly and contained inside "greater than" and "less than" brackets. You may remember these brackets from your grade school days as alligator mouths!
example <html> where html is the tag name

Tags may also have attributes. Attributes are like extra modifiers for a tag. Some tags have attributes and some do not.
example <hr size=240> where hr is the tag name and size is an attribute

Element tags come in pairs-an opening or start tag and closing or end tag. Element tags apply some process or "look" to all the stuff that comes in between them
End tags have a backslash just after the the first angle bracket and just before the tag name
example <p>This is the text of my paragraph</p>

Empty tags perform tasks too--but those tasks are the kind that happen once--they do not enclose text and therefore do not need a closing tag
example <img src=name.JPG> where img is the tag name and src is an attribute

:acumen
Do Wat You Like