Tutorialspoint

HTML select autofocus Attribute

<!DOCTYPE html>
<html>
   <body>
      <h1>Profile</h1>
      <h2>Educational Qualification</h2>
      <section>
         <h3>Graduation</h3>
         <select autofocus>
            <option value="bca">BCA</option>
            <option value="bcom">B.COM</option>
            <option value="btech">B.TECH</option>
         </select>
      </section>
      <section>
         <h3>Postgraduation</h3>
         <select>
            <option value="mca">MCA</option>
            <option value="mcom">M.COM</option>
            <option value="mtech">M.TECH</option>
            <option value="msc">M.Sc</option>
         </select>
      </section>
      <section>
         <p>Worked at ABC Corporation from July 2015 - May 2019 as a Technical Manager.</p>
      </section>
   </body>
</html>

Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.