HTML CSS examples for HTML Tag:link
The href attribute specifies the location (URL) of the external resource.
Value | Description |
---|---|
URL | The URL of the linked resource/document. |
The following code shows how to Link to an external stylesheet:
<!DOCTYPE html> <html> <head> <link rel="stylesheet" type="text/css" href="your styles.css"> </head><!--from w w w.j a v a 2s . c o m--> <body> <h1>I am formatted with a linked style sheet</h1> <p>Me too!</p> </body> </html>