www.casino.nf All Tricks and Tips,PHP,HTML,.NET,SEO,XML

HTML Elements


                     HTML Elements



  • HTML documents are text files made up of HTML elements.
  • HTML elements are defined using HTML tags.

What Is An HTML Element

An HTML element indicates structure in an HTML document and a way of arranging content hierarchically. An HTML element is an SGML element that meets the requirements of one or more of the HTML DTDs (Document Type Definitions ). These elements have properties: both attributes and content, as specified (both allowable and required) according to the appropriate HTML DTD . Elements may represent paragraphs, headings, hypertext links, lists, embedded media, and a variety of other structures.

Syntactically HTML elements are constructed with:

    1) a start tag marking the beginning of an element;
    2) any number of attributes (and their associated values);
    3) some amount of content (characters and other elements)'; and
    4) an end tag.

Many HTML elements include attributes in their start tags. Attributes are defining desired behavior or indicating additional element properties. The end tag is optional for many elements. There are a few elements that are not part of any official DTDs, yet are supported by some browsers and used by some web pages. Such elements may be ignored or displayed improperly on browsers not supporting them.


HTML Tags
Informally, HTML elements are sometimes referred to as "tags", though many prefer the term tag strictly in reference to the semantic structures delimiting the start and end of an element.
  • HTML tags are used to mark-up HTML elements
  • HTML tags are surrounded by the two characters < and >
  • The surrounding characters are called angle brackets
  • HTML tags normally come in pairs like <i> and </i>
  • The first tag in a pair is the start tag(<i>), the second tag is the end tag(</i>)
  • The element content is the text between the start and end tags
  • HTML tags are not case sensitive, <b> means the same as <B>


  • Why do We Use Lowercase Tags?

    Start using lowercase tags, if you want to prepare yourself for the next generations of HTML. The World Wide Web Consortium (W3C) recommends lowercase tags in their HTML 4 recommendation, and XHTML - the next generation HTML - demands lowercase tags.