Will there be any difference or effect on different browser in these text writing styles?

Hi there

Sometimes I write a text Inside "label " tag My Text
And Sometimes I write like “My Text” Simply with any tags around its

So far I get output on all browser without any Issues.

My Question is
Is there be any risk writing text Inside tag or without any tags?
(Browser Compatiblity,Cross Browser Issues)

One more question Suppose If I make too much “div’s” or “class” or “table” in my code.
Will it affects browser display time or memory?

Thanks

I’ve never heard of the <lebel> tag, you mean <label>?

my mistake its “label”

Maybe if you code it for us, we can understand better what you mean by in the tag and text with tags around it. I confess I don’t understand what you mean

Suppose in my page I write code like this

<label>My Text</label>

and in some line I simply write

My Text

without under any types of tags

So I am talking about this seneraio

It is a question of accessibility and, therefore SEO, more than anything else. You should use the label tag.

Ok So its Not much more Important then SEO perspective.

right?

For me, the important issue is accessibility and usability. Unfortunately, for most people, SEO is the only thing they care about

I just tried this in Firefox

<alpha>alpha</alpha>
<beta>beta</beta>
<delta>delta</delta>

the text inside the made-up tags displayed fine. So I think it largely depends on what you mean by “risk”

AFAIK browsers may use the tags for layout, but the text inside of them should display unless CSS or JavaScript is affecting them.

IMHO if the page passes http://validator.w3.org/ you will be more than likely be fine (and a lot better off than a lot of other site’s pages) in terms of the mark-up having any negative impact on display time.

Not to say that the number of HTTP requests, JavaScript, image size etc. won’t have an effect. But if you get the mark-up to validate you’re off to a good start.

Perhaps you need to read what the label element is actually used for.

great discussions

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.