html within label elements -


Is it possible to include HTML elements - such as img, span, or div - within a label element?

In my page, I have radio buttons that allow users to choose between different layouts, and I want to display the visible label instead of plain text.

, the "inline element" can be included in the label element, Which does not include img and duration but div . Although it is very approbatory, and says: "Content is the phrase phrase, but no lineage is labeled with the elements until this element is labeled in control, and there is no descendant label element . " Here is a phrase word content ???? To a great extent, it is similar - inline elements.

On the practical side, it is best to leave all interactive content, such as links, though they are well-defined in the effects principles, but the content is inefficient in different ways, e.g. So that clicking on a link inside a label can focus on the associated form field (and potentially toggling its setting) by clicking elsewhere in the link.

But there is no problem using the images inside a label, as far as the element becomes nest, for accessibility, in the image, alt text Or , the remaining image should be understood, even if the image is not visible. And you can use the span style part of a label different from the rest.

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -