HTML CSS examples for CSS Selector:element parent child
CSS selector for several id's within a parent class
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .example6>div>label>input { border-color:Chartreuse; } </style> <!--from w w w . ja v a 2s .co m--> </head> <body> <form class="example6"> <div> <h3>Lorem ipsum </h3> <label> <span>Lorem ips</span> <input id="name" type="text" name="name"> </label> <label> <span>Lorem ipsum d</span> <input id="email" type="text" name="email"> </label> <label> <span>Lorem i</span> <input id="subject" type="text" name="subject"> </label> <label> <span>Lorem i</span> <textarea name="feedback"></textarea> </label> </div> </form> </body> </html>