472,993 Members | 2,617 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,993 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 4093
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: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
4
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...
3
SueHopson
by: SueHopson | last post by:
Hi All, I'm trying to create a single code (run off a button that calls the Private Sub) for our parts list report that will allow the user to filter by either/both PartVendor and PartType. On...

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.