Attributes That are used basically in HTML.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ruby17
    Member
    • Sep 2008
    • 56

    Attributes That are used basically in HTML.

    HTML Tag Attributes


    HTML tags can have attributes. Attributes provide additional information to an HTML element.
    Attributes always come in name/value pairs like this: name="value".

    Attributes are always specified in the start tag of an HTML element.
    Attributes Example 1:
    <h1> defines the start of a heading.

    <h1 align="center"> has additional information about the alignment.


    Attributes Example 2:
    <body> defines the body of an HTML document.

    <body bgcolor="yellow"> has additional information about the background color.

    Attributes Example 3:
    <table> defines an HTML table. (You will learn more about HTML tables later)

    <table border="1"> has additional information about the border around the table.


    Use Lowercase Attributes
    Attributes and attribute values are case-insensitive. However, the World Wide Web Consortium (W3C) recommends lowercase attributes/attribute values in their HTML 4 recommendation, and XHTML demands lowercase attributes/attribute values.
  • Guest

    #2
    you can use even
    <h1 align="RIGHT">or "LEFT" so as to make the text according to which so ever alignment you want.
    h1 is the HEADING provider which makes your document heading big.It is extended to h1,h2,h3,h4,h5, and h6.
    Moreover HTML is not a case sensitive language.You can either right in Lower or in Upper case but the attributes of the tags should be in lower case.

    for more information see my thread

    Comment

    • Guest

      #3
      Thanks for that. <a href="address of link"> this is one which is used to create the link.

      Comment

      Working...