Re: attributes

by "Darrell King" <darrell(at)webctr.com>

 Date:  Fri, 19 Oct 2001 07:57:26 -0400
 To:  <hwg-basics(at)hwg.org>
 References:  knowledgepool
  todo: View Thread, Original
I've actually found there's less to define with the newer languages...a year
after ditching font tags, I am still impressed when I look at my source
without them...but I guess it's a matter of perspective.  Using CSS, for
instance, you can do away with the border, cellpadding, cellspacing, width
and align attributes of the table tag...although I am sure some older
browsers like NN4 would not respond the way I'd hope if I did that...:).

I don't think there's any version of HTML that requires the align attribute
in a p tag, so that's probably not an issue.  Some tags, however, should be
present even when they don't contribute to the author's design concept, such
as the alt, title and summary attributes.

IMHO, not "all" attributes need to be present, just those that are a) needed
to make a given browser jump through the proper hoops, and b) those
specifically required by the language you are using.

D


----- Original Message -----
From: "Wigmore Pippa" <pippa.wigmore(at)knowledgepool.com>


Wouldn't defining all attributes for all elements in a page just increase
the volume of code?

Admittedly there are some attributes that are essential; there is no point
in having an <.img> with no src="".  However, would it really be necessary
to put align="left" into every paragraph?  Is there a browser that does not
use left as the default?

-----Original Message-----
From: Darrell King [mailto:darrell(at)webctr.com]


if you don't, some browsers may supply a default you don't like...:)

Also, some attributes are indeed required, depending upon the tag and
doctype.

D

----- Original Message -----
From: "Holly" <holly(at)shaltzfarm.com>


I was wondering if it's considered strictest code to define all
attributes, even when they are "0"?  As in border="0"?

Thanks,

Holly

HTML: hwg-basics mailing list archives, maintained by Webmasters @ IWA