Skip to main content

Posts

Featured

Class Selector

Hello! Welcome to my blog! In this blog you will learn how to specify a style for a group of elements (class selector) using an internal style sheet . 1. Open Notepad 2. Type the following codes: <html> <head> <style> .center{text-align:center} </style> </head> <body> <h1 class="center"> This heading is aligned in the center. </h1> <p class="center"> This paragraph is also aligned in the center .</p> </body> </html> 3. Save the file with a .html extension. 4. Test the file in a browser.

Latest Posts