Skip to content
Related Articles

Related Articles

Improve Article

jQuery | :header Selector

  • Last Updated : 12 Apr, 2019
Geek Week

The :header Selector is used to select all the heading elements that is from (<h1> to <h6>).



Example: Change the color of all headings to green .

<!DOCTYPE html>
    <script src=
        $(document).ready(function() {
                "color", "green");
        <h2>jQuery :header Selector
        <div style="color:orange;">
        <h5>A computer science 
          portal for geeks.
        <p style="color:dodgerblue">
            Sudo Placement

Output :

Supported Browsers: The browser supported by jQuery :Header Selector are listed below:

  • Google Chrome
  • Internet Explorer
  • Firefox
  • Opera
  • Safari

My Personal Notes arrow_drop_up
Recommended Articles
Page :