473,320 Members | 1,879 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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

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

Jul 20 '05 #1
4 1983
Mark Erikson <ma********@yahoo.com> wrote in
news:ca********************************@4ax.com:
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
Jul 20 '05 #2
In article <ca********************************@4ax.com>,
Mark Erikson <ma********@yahoo.com> 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. 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).


Check the HTML4.01 Specs. That will tell you which attributes are
required on particular elements and which are optional. To me, this
seems the most logical approach.

--
Kris
kr*******@xs4all.netherlands (nl)
"We called him Tortoise because he taught us" said the Mock Turtle.
Jul 20 '05 #3
On Wed, 30 Jul 2003 09:34:59 -0400, Mark Erikson
<ma********@yahoo.com> 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
ni******************@urmc.rochester.edu
Jul 20 '05 #4
ni******************@urmc.rochester.edu (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
Jul 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: whtevr | last post by:
Consider this HTML on an ASP page called default.asp in a virtual directory: <FORM name="Flogin" id="Flogin" action="" method=post> </FORM> Do I HAVE to put the literal "default.asp" into the...
12
by: Stefano | last post by:
Hi all, what is the correct use of the "default" attribute in XML Schema? For example: <xs:element name="myProperty" type="xs:string" default="myDefaultValue"/> What can I do with it? What...
18
by: Clark Nu | last post by:
It seems that when I define a fuction,I can set a default value to some of the peremeters.When I call the fuction without some of them,the fuction will use the default value automaticlly then...
5
by: Hendrik Schober | last post by:
Hi, we just run into the problem, that "default" alignment in the project properies dialog seem to be different. We have a project that's a DLL, which is linked with a couple of LIBs. All are...
8
by: Bern McCarty | last post by:
Is it at all possible to leverage mixed-mode assemblies from AppDomains other than the default AppDomain? Is there any means at all of doing this? Mixed-mode is incredibly convenient, but if I...
6
by: Paul Turley | last post by:
Does anyone have some sample script to "press" a button or image button when the user presses the Enter key? I see this behavior on a lot of web pages but I'm not finding any samples. Thx --...
15
by: simonoficina | last post by:
Hello all! I am a vb.net beginner in Spain. When I use VB6 ,the button object has a property called "default" that can set this button like press "ENTER" key. But in the VB.net I can't find this...
3
by: melon | last post by:
This is a silly question. When I create a new project, Visual Studio assigns a default icon (the one with some small colorful squares) to the program. The icon is used in the title bar but not as...
1
by: UKishore | last post by:
Hi All, Am generating a new profile by running my standalone application using the API "NetUserAdd". After logging to the newly created profile , I couldn't see default "Recently Used Programs"...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.