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

M

Mark Erikson

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
 
N

Nick Theodorakis

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
 
J

Jukka K. Korpela

<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.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Staff online

Members online

Forum statistics

Threads
473,731
Messages
2,569,432
Members
44,832
Latest member
GlennSmall

Latest Threads

Top