Computer Science, asked by tanishsingh3183, 1 year ago

How can you link an external style sheet to an html document ?

Answers

Answered by Akhilrajput1
4
To use the <link> tag to specify an external style sheet, follow these steps:

Define the style sheet. ...

Create a link element in the HTML page's head area to define the link between the HTML and CSS pages. ...

Set the link's relationship by setting the rel = “stylesheet” attribute.

Answered by tejasgupta
2

Hi. We can link an external style-sheet to a html doc using the link open tag in the head section of the html doc. For example,

&lt; link rel="stylesheet" src="location/of/the/stylesheet/cssfile" type="text/css" / &gt;

Hope it helps!

Similar questions