HTML - Attributes menu

User Tag List

Results 1 to 1 of 1
  1. #1
    Nolixz's Avatar ★ Elder ★
    Reputation
    1000
    Join Date
    Oct 2006
    Posts
    1,371
    Thanks G/R
    6/17
    Trade Feedback
    16 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    HTML - Attributes

    Author: w3schools.com

    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:

    HTML Code:
    Code:
    <h1> defines the start of a heading.
    
    <h1 align="center"> has additional information about the alignment. 
    Attributes Example 2:
    HTML Code:
    Code:
    <body> defines the body of an HTML document.
    
    <body bgcolor="yellow"> has additional information about the background color.
    Attributes Example 3:

    HTML Code:
    Code:
    <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.
    Always Quote Attribute Values

    Attribute values should always be enclosed in quotes. Double style quotes are the most common, but single style quotes are also allowed.

    In some rare situations, like when the attribute value itself contains quotes, it is necessary to use single quotes:

    name='John "ShotGun" Nelson'


    ***I DO NOT TAKE CREDITS FOR THIS***



    HTML - Attributes

Similar Threads

  1. Fake Account Info Page as HTML File!
    By gamefreakfatty in forum WoW Scam Prevention
    Replies: 4
    Last Post: 06-02-2007, 05:35 PM
  2. HTML Assistance! :D
    By Lethi in forum Community Chat
    Replies: 6
    Last Post: 05-28-2007, 01:53 PM
  3. Any people here thats good with html?
    By Disphotic in forum Community Chat
    Replies: 6
    Last Post: 05-16-2007, 11:52 AM
  4. /success.html etc
    By xxxcoolxxx in forum World of Warcraft General
    Replies: 4
    Last Post: 01-27-2007, 05:37 PM
All times are GMT -5. The time now is 09:47 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search