473,321 Members | 1,667 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,321 software developers and data experts.

Question about a <b> in the inner text of a label

I have three radio buttons that are possible answers to a question. I
have put them in a table and there is a label that goes with each radio
button as its text. I would like to make some of the text of the label
bold, so I have put <b> tags around the text I want bold. But it
doesn't work; the text that should be bold is just regular. Any ideas
would be appreciated. Thanks in advance. Here is the html:

<table id="ANSWERS_4" border="0"
style="color:#003366;font-family:Arial;font-size:12pt;">
<tr>
<td>
<input id="ANSWERS_4_0" type="radio" value="A" />
<label for="ANSWERS_4_0"><b>This text is bold</b> 200 mg/dL</label>
</td>
</tr>
<tr>
<td>
<input id="ANSWERS_4_1" type="radio" value="B" />
<label for="ANSWERS_4_1">350 mg/dL</label>
</td>
</tr>
</table>

Jul 23 '05 #1
1 4107
jo********@yahoo.com wrote:
I have three radio buttons that are possible answers to a question.
The sample you posted has just two. It often happens that when people
post just an excerpt of code, they inadvertantly modify it in a manner
that prevents proper analysis of the problem, or omit a relevant part.
To put it simply: post the URL
I have put them in a table and there is a label that goes with each
radio button as its text.
OK, though I don't see a particular reason to use a table - you have
just one cell per row.
I would like to make some of the text of
the label bold, so I have put <b> tags around the text I want bold.
Why? The <b> markup says 'I'd like to have this bold, but I can't say
why'. If it is for emphasis, <strong> is more logical. Either way, no
problem - you can use text-level markup inside a label element.
But it doesn't work; the text that should be bold is just regular.
Your excerpt is displayed with the desired text in bold
on IE 6 and Mozilla on my system.

Please post the URL, and identify the browser(s) you tested.
<table id="ANSWERS_4" border="0"
style="color:#003366;font-family:Arial;font-size:12pt;">
Bad CSS: you should always set background when you set color, and
you should not set a fixed font size. The size 12pt is too big to many,
too small to many.
<input id="ANSWERS_4_0" type="radio" value="A" />


Your input elements lack the name attribute, without which they are
useless.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

Jul 23 '05 #2

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

Similar topics

2
by: Eshrath | last post by:
Hi, What I am trying to do: ======================= I need to form a table in html using the xsl but the table that is formed is quite long and cannot be viewed in our application. So we are...
2
by: Donald Firesmith | last post by:
I am having trouble having Google Adsense code stored in XSL converted properly into HTML. The <> unfortunately become &lt; and &gt; and then no longer work. XSL code is: <script...
3
by: TR | last post by:
Is it possible with CSS to prevent this wrapping alignment with a checkbox with a nested label? This is the label of the checkbox that wraps beneath it I'd prefer it looked like...
3
by: z. f. | last post by:
Hi, i'm using code in my aspx page. i have data binding where i use <%# Container.DataItem("DateStart") %> i also use code that makes a loop inside a regular <% %> block how can i pass...
0
by: Adam | last post by:
Hi I split aspx for 1. aspx - www 2. vb But i have problem because Statement is not valid in a namespace. I don't know while this don't power becouse befor split wab all OK Please Help Me...
2
by: Magnus Blomberg | last post by:
Hello! I am trying to write a simple aspx page with You are logged on as <% getuser(); %> in the body text. In my code-behind I write (for test: public String getuser() { String s =...
8
by: antonyliu2002 | last post by:
Hi, gurus: For VB.NET, if I have a variable myString somewhere inside <% and %> in a page called mypage.aspx like so: <% '.... some code here myString = "Junkie.txt" '.... some other code...
11
by: Squeamizh | last post by:
class my_class { public: my_class() : value(0) { } int& get_value() { return value; } const int& get_value() const { my_class& c = const_cast<my_class&>(*this); return c.get_value(); }
3
by: ajay2552 | last post by:
Hi, I have a query. All html tags start with < and end with >. Suppose i want to display either '<' or '>' or say some text like '<Company>' in html how do i do it? One method is to use &lt,...
2
by: -Karl | last post by:
Couls someone please advise me on this error. What I am trying to do is be able to convert an XML document into arrays. I read that the subs & functions have to be in <scripttags. Thanks! ...
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...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.