An H1-B visa only covers the foreign professional to whom it is granted. However, a spouse and children under the age of 21 are eligible to live in the U.S. with you for the duration of your visa. Eligible immediate family members need to apply for H-4 visa nonimmigrant visa status.
If you hope for your family to join you for the term of your H1-B visa, it’s highly recommended that you work with an H1-B lawyer to ensure the application process is completed correctly.