Request - your most frequently used/"default" tag attributes

Discussion in 'HTML' started by Mark Erikson, Jul 30, 2003.

  1. Mark Erikson

    Mark Erikson Guest

    I'm currently writing an HTML editor for the PocketPC, and one of my
    Tag class's properties is DefaultAttributes. The idea behind this is
    that some tags are almost always used with certain attributes, ie <a
    href="">, so I'd like to make sure those attributes are included when
    I insert the tag. Since I actually don't write that much HTML myself,
    I was hoping to get some feedback as to which tag/attribute
    combinations are used particularly frequently. Since I did cross-post
    this (hopefully not annoyingly so), e-mails to markulus00 -at-
    yahoo.com would be greatly appreciated (though I will check these
    newsgroups as well).

    Thanks!

    Mark Erikson
     
    Mark Erikson, Jul 30, 2003
    #1
    1. Advertising

  2. Mark Erikson <> wrote in
    news::

    > I was hoping to get some feedback as to which tag/attribute
    > combinations are used particularly frequently.
    > Mark Erikson
    >
    >


    You could start by using all attributes marked as #REQUIRED in the
    specification.
    http://www.w3.org/TR/REC-html40/index/attributes.html
     
    Jonas Hansson, Jul 30, 2003
    #2
    1. Advertising

  3. On Wed, 30 Jul 2003 09:34:59 -0400, Mark Erikson
    <> wrote:

    >I'm currently writing an HTML editor for the PocketPC, and one of my
    >Tag class's properties is DefaultAttributes. The idea behind this is
    >that some tags are almost always used with certain attributes, ie <a
    >href="">, so I'd like to make sure those attributes are included when
    >I insert the tag. Since I actually don't write that much HTML myself,
    >I was hoping to get some feedback as to which tag/attribute
    >combinations are used particularly frequently.


    <img src="" alt="">

    <form action="">

    Nick

    --
    Nick Theodorakis
     
    Nick Theodorakis, Jul 31, 2003
    #3
  4. (Nick Theodorakis) wrote:

    > <img src="" alt="">
    >
    > <form action="">


    The attributes in those elements are even _required_ by HTML syntax (by
    HTML 4.01 at least - the alt attribute was "only" recommended, not
    formally required, before HTML 4.0).

    An HTML editor should naturally makes it best to ensure that the markup
    is syntactically valid, unless the user specifically requests
    otherwise. In particular, it should prompt the user for values for all
    required attributes and include them.

    Checking the list of attributes, the handy appendix of the HTML 4.01
    specification, at
    http://www.w3.org/TR/html4/index/attributes.html
    you can find what attributes are required, by looking at the "Default"
    column.

    --
    Yucca, http://www.cs.tut.fi/~jkorpela/
    Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html
     
    Jukka K. Korpela, Jul 31, 2003
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. shruds
    Replies:
    1
    Views:
    881
    John C. Bollinger
    Jan 27, 2006
  2. Xah Lee
    Replies:
    6
    Views:
    346
    Xah Lee
    Oct 29, 2006
  3. Xah Lee
    Replies:
    7
    Views:
    302
    Theerasak Photha
    Oct 29, 2006
  4. C3
    Replies:
    8
    Views:
    138
  5. Xah Lee
    Replies:
    6
    Views:
    102
    Xah Lee
    Oct 29, 2006
Loading...

Share This Page