| You are here: | About>Computing & Technology>Web Design / HTML> CSS> CSS Selectors> CSS Type Selectors - What is a CSS Type Selector |
![]() | Web Design / HTML |
More About CSS SelectorsWhat is a CSS Type Selector?A CSS type selector names the HTML tag or XHTML element to style. To use a type selector, simply write the HTML tag name that you want styled. To style all paragraph (P) tags, you would write: p { To style all h1 tags, you would write: h1 { If you have two XHTML tags that need the same style, separate the selectors with a comma: p, h1, h2 { More About CSS Selectors |
Las Vegas on a BudgetFind a BargainHotel DealsCheap EatsFree AttractionsEntertainment for Less |
All Topics | Email Article | | | ![]() |
| Advertising Info | News & Events | Work at About | SiteMap | Reprints | Help | Our Story | Be a Guide |
| User Agreement | Ethics Policy | Patent Info. | Privacy Policy | ©2008 About, Inc., A part of The New York Times Company. All rights reserved. |


