Forum Moderators: not2easy
1)
form.formname p label
{
color: red;
}
One or more <label>, inside one or more <p>, inside one or more <form>, with the class name of formname - will render text of the LABEL red.
.....................
2)
form.formname p, form.formname label
{
color: red;
}
One or more <p> and <label>, inside one or more <form>, with the class name of formname - will render text of the PARAGRAPH and LABEL red.
.....................
3)
form.formname (p, label)
{
}
This does nothing. The format is not valid. Validate your CSS as 'best practice.
[jigsaw.w3.org...]
.....................
4)
You may have been attempting the following with #3. Attribute Selectors have their place, but probably not appropriate for needs.
W3C - Attribute Selectors [w3.org]