PC Review


Reply
Thread Tools Rate Thread

Is it any point to use html directly instead of label

 
 
Tony Johansson
Guest
Posts: n/a
 
      29th Nov 2010
Hello!

Instead of using a label control I can write the text directly in the web
page.

So is it any point to write text directly insted of using a label ?

//Tony


 
Reply With Quote
 
 
 
 
Brian Cryer
Guest
Posts: n/a
 
      30th Nov 2010
"Tony Johansson" <(E-Mail Removed)> wrote in message
news:id0ho0$j04$(E-Mail Removed)...
> Hello!
>
> Instead of using a label control I can write the text directly in the web
> page.
>
> So is it any point to write text directly insted of using a label ?


If the text never changes then you could use static text in the HTML, but if
the text does change then with a label:

1. its considerably easier to use than injecting plain text.

2. ots probably much easier for someone else (or you) to maintain the code
if you use a label rather than adding output directly.

whether or not the text every changes:

3. You can associate a label with another control, which helps screen
readers associate the text (caption) with the control it goes with.

Hope this helps.
--
Brian Cryer
http://www.cryer.co.uk/brian

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is it any point to use html directly instead of label Tony Johansson Microsoft C# .NET 1 30th Nov 2010 11:22 PM
Power Point Pocket directly to projector ? =?Utf-8?B?T2xsZQ==?= Microsoft Powerpoint 0 18th Oct 2006 02:19 PM
Editing HTML directly Chuck Duchon Microsoft Frontpage 5 29th Sep 2004 07:53 PM
Q: How to paste HTML source directly into HTML message? Mike Microsoft Outlook 0 9th Feb 2004 02:59 PM
Re: writing HTML directly IbrahimMalluf Microsoft ASP .NET 0 8th Jul 2003 04:05 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:46 AM.