You can use the selector below:
h1 + form > label:first-child { }
So the above selector will select the form element, which is a child of h1 , and then it gets up and selects the first straight label element, and so I use >
You can safely get rid of > if you are sure that you may not have nested label elements inside your form element.
Note that this is a very general tag selector, I suggest you wrap the elements in a shell element and give it a class say form-wrapper and change your selector, for example
.form-wrapper h1 + form > label:first-child { }
source share