Which tag is useful for html coding?

Discussion in 'HTML & Website Design' started by sejourney, May 26, 2007.

  1. #1
    Is it wiser to use lower case tags for html document coding ,keeping in mind the future of web standards?
     
    sejourney, May 26, 2007 IP
  2. Mooseman

    Mooseman Peon

    Messages:
    453
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I have always used lower case because it looks better and it goes faster to write for me. =)
     
    Mooseman, May 26, 2007 IP
  3. alemcherry

    alemcherry Guest

    Best Answers:
    0
    #3
    Same here :)
     
    alemcherry, May 26, 2007 IP
  4. rennick

    rennick Peon

    Messages:
    85
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Lower case is also xhtml compliant code.
     
    rennick, May 26, 2007 IP
  5. ansi

    ansi Well-Known Member

    Messages:
    1,483
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    100
    #5
    depends on the doctype. XHTML has to have lcase tags and attributes in order to be valid. where as html 4.01 uses attributes such as onClick, onFocus, onSubmit and etc... and generally uses ucase tags as well.
     
    ansi, May 26, 2007 IP
  6. Jem

    Jem Peon

    Messages:
    22
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    You can use onClick etc with XHTML too, you simply make it lowercase: onclick

    In my opinion it's easier to type lowercase, and if you do consider using an XHTML based doctype in the future you will have less to do to convert.
     
    Jem, May 26, 2007 IP
  7. ansi

    ansi Well-Known Member

    Messages:
    1,483
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    100
    #7
    i could have phrased that better but the point i was trying to make is that in html 4.01 onClick, onFocus, etc are 'valid' being as the first letter after 'on' is ucase. those attributes are pretty much available across all standard doctypes but i just used it as an example. probably a bad one.. but nevertheless... :)
     
    ansi, May 26, 2007 IP
  8. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #8
    It's actually preferable to use lower-case (except for the DOCTYPE itself, of course) regardless of whether you're using HTML, XHTML served as HTML, or real XHTML (meaning XHTML served as application/xhtml+xml instead of text/html).

    It's just easier to read.
     
    Dan Schulz, May 26, 2007 IP
  9. softnmore

    softnmore Peon

    Messages:
    34
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #9
    is there any PR point if i use <UL> or <OL> tag ?
     
    softnmore, May 27, 2007 IP
  10. 0n3Liner

    0n3Liner Peon

    Messages:
    36
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    to make lists? :p
     
    0n3Liner, May 27, 2007 IP
  11. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Don't think about using HTML elements for SEO purposes - you'll just shoot yourself (and your visitors) in the foot... if not worse. UL is for unordered lists, such as a grocery list, a menu (yes, even site navigation), or a list of your favorite books. OL is for ordered lists, like a recipe, or driving directions.
     
    Dan Schulz, May 27, 2007 IP
  12. Lynsey

    Lynsey Peon

    Messages:
    132
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Lower case for sure
     
    Lynsey, May 27, 2007 IP
  13. grimsqueaker

    grimsqueaker Peon

    Messages:
    551
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    0
    #13
    I don't think I've seen sites using uppercase letters for HTML either.
     
    grimsqueaker, May 27, 2007 IP
  14. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #14
    I have. It's not pretty either.
     
    Dan Schulz, May 27, 2007 IP
  15. Sepehr

    Sepehr Peon

    Messages:
    568
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #15
    i always use lower case and here's a quote from w3cschools.com:

     
    Sepehr, May 28, 2007 IP
  16. Braynid

    Braynid Peon

    Messages:
    38
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #16
    Lower case because it's A LOT of code. This is a good idea for coding in general not only HTML. The only place where I use upper case is mysql, things can get messy there if you're not careful!
     
    Braynid, May 28, 2007 IP
  17. samusexu

    samusexu Well-Known Member

    Messages:
    138
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    108
    #17
    Maybe in the past I've seen more upper case tags in the html sources but now many people don't use that and I don't use that as well
     
    samusexu, May 28, 2007 IP
  18. diarmuid

    diarmuid Peon

    Messages:
    285
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #18
    I've never really coded in Upper case, that I can remember anyway... I've never seen a need or wanted too... its faster, easier, reads better and is future XHTML compliant using lowercase, so why would I want to use uppercase??

    Diarmuid
     
    diarmuid, May 28, 2007 IP
  19. ansi

    ansi Well-Known Member

    Messages:
    1,483
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    100
    #19
    i agree. lowercase is definitely easier on the eyes. especially when there's thousands of lines...
     
    ansi, May 29, 2007 IP
  20. AdamSee

    AdamSee Well-Known Member

    Messages:
    422
    Likes Received:
    28
    Best Answers:
    0
    Trophy Points:
    135
    #20
    Lower case must (http://www.w3.org/TR/xhtml1/#h-4.2) be used for XHTML, as it's a reformulation of XML. Thus case sensitive. Owing more to convention rather than actual language limitations.
     
    AdamSee, May 29, 2007 IP