XtGem Forum catalog

WEBMAK!

HTML Elements
HTML Elements are the fundamentals of HTML. This elements are defined using tags which you will learn soon. HTML consists of almost 100 tags.

  • The <!DOCTYPE....> element tells the browsers that which version of HTML is using in the !DOCTYPE.
  • The <html> tag contains all the other tags of HTML sit inside, except !DOCTYPE.
  • The <head> tag contains those informations which is normally not visible within your browser, except <title> tag which containis title of your web pages and shows it to the browsers title bar.
  • The <body> tag contains most of your codes and visible contents within the browser.
  • The <P> tag declares a paragraph within your body tags or contents, it consists of text.


  • Closing Your Tags: Closing your tags is slightly Different, it contains a forward slash ( / ) after the less than ( < ) sign. This means that this tag is closing the previous one.
    * We recommend to use always lowercase (e.g. <head> ) tags for better use and for the compliant of XML.


    HTML Element Syntax:
  • Some Element May Have Empty Content, Here we close the previous tag by placing the forward slash ( / ) before the greater than ( > ) sign.
    e.g. <input type="text" />
  • Most of the HTML Element may have attribute as the above example, you will learn about it later.


  • Nested HTML Element: Most of the HTML Elements can be nested (i.e., Can contain more than one other HTML Elements).
    HTML documents are consists of lots of nested HTML Elements.


    Share:
    Follow us: