CodeLab
Tutorials For Everyone
Run
<!Doctype HTML> <html> <head> <title>External Style Sheets</title> <link rel="stylesheet" type="text/css" href="/style.css"> </head> <body> <h2>CSS External Style Sheets</h2> We use link element to add an external style sheet. It has multiple attributes to define and locate the style steet properly. <h3>CSS styles are linked in the head section</h3> <p class="pie-content">After adding a link of the style sheet, we can use the defined classes or ids in the HTML elements to have the result.</p> </body> </html>