Can someone help me (a Newbie)?

  • Thread starter Thread starter Shelly
  • Start date Start date
S

Shelly

I was hoping to get some answers to my previous post where I asked:

1 - How do I specify the style sheet? The CssClass value is not defined is
the message I get.
2 - It doesn't recognize <embed>. I have a Flash stuff at the top.
3 - Answered.
4 - It says that "background" is invalid in <td>. Since I point to an image
file, which appears in the browser by the way, what is the proper one to
use? Obviously, it must be getting it because when I test it, the image
appears.
5 - It say that "img" requires the "alt" tag. I currently don't have one.
What should I use? (and what should I put in as the value?)
6 - It also says that bgcolor is outdated. Again, what is the replacement?
Is it part of the style declaration?
Is there somewhere that you can point me to find out what all the
replacements are and their syntax?
7 - Ditto for "align" in <div>

Thanks.

Shelly
 
Hi Shelly,

1) Then you didnt specifiy a CssClass in your .css, double check if it exists.
4) Where did you set the background? It's always better to use CSS for it,
although, those are just W3C guidelines, you don't have to follow them but
should.
5) The alt tag describes the image, for a tree image you would use alt="tree"
6) background-color: #00000 in the CSS file is the proper W3C suggestion.
7) Define it via CSS

You should crawl through the web for some W3C standards and definitions. You
don't have to follow all that stuff but it's recommended for cross browser
compability.

hth,
Andreas
 
I was hoping to get some answers to my previous post where I asked:

1 - How do I specify the style sheet? The CssClass value is not defined is
the message I get.
2 - It doesn't recognize <embed>. I have a Flash stuff at the top.
3 - Answered.
4 - It says that "background" is invalid in <td>. Since I point to an image
file, which appears in the browser by the way, what is the proper one to
use? Obviously, it must be getting it because when I test it, the image
appears.
5 - It say that "img" requires the "alt" tag. I currently don't have one.
What should I use? (and what should I put in as the value?)
6 - It also says that bgcolor is outdated. Again, what is the replacement?
Is it part of the style declaration?
Is there somewhere that you can point me to find out what all the
replacements are and their syntax?
7 - Ditto for "align" in <div>

Thanks.

Shelly

Shelly, Please don't use HTML attributes when you can specify layout
properties in styles or classes. Modern HTML coders try to put all
layout information into a class. There are very few attributes which
can't be replaced by styles.

Did you notice that at the top of your page there's a DOCTYPE? The
DOCTYPE defines the standard (HTML validation rules) you're working
with. You can relax the DOCTYPE but you are actually better off with a
strict variant rather than a transitional one. Sure a transitional will
give you more freedom but there's a cost. Browsers are much more likely
to display the page with slight (sometimes big) differences. So I always
specify HTML 4.01 strict for my DOCTYPE because: a) different browsers
all display the pages the same way when my HTML is valid and b) it's the
least strict you can be. (IE6 doesn't understand XHTML strict).

1. A style sheet is a text file ending with the extentsion .css Read up
on how to write style sheets or post you message to the html style sheet
forum: news:comp.infosystems.www.authoring.stylesheets
2. Honestly don't know
4. Use a style
5. Just add alt="" to all your images if you don't want to actually put
any information text in there.
6. Yes there's a replacement for bgcolor - use the corresponding style.
7. Use a style
 
Shelly said:
I was hoping to get some answers to my previous post where I asked:

Actually you did get answers. The basis of those answers was, like the
latest ones here, that you need to understand CSS and web standards
better. I also gave you some detailed and specific answers to each of
the questions you raised.

Please understand that people here will help you, but only if you read
and accept the replies. You had quite a few replies, and yet still
reposted the same questions in an entirely new thread.

Also, these questions are nothing to with ASP.NET, they are CSS
questions, and as such should be asked in a CSS newsgroup, such as
comp.inforsystems.www.authoring.stylesheets (do a Google search for the
exact name)

Finally, all the answers you wanted could have been found with some
searching. They are all fairly standard basic HTML and CSS issues, and
are covered in many places on the web and in newsgroups.

This is not a flame, it's a genuine piece of advice intended to help you
get the answers you want.
 
Back
Top