I want to create a check box with the text "I agree to the Terms and Services" in gwt. But I only want the link to work on the phrase "Terms and Services". It seems that with anchor the whole text works as a hyperlink. Is there some way I can only make a selected few words of the same anchor appear as a hyperlink? Or is there possibly a way to add two different hyperlinks inside the same anchor?
CheckBox cb = new CheckBox();
cb.setHTML("I agree to the <a href='#'>Terms and Services</a>");
I hope I get your idea :)