how to connect a css file to html code example

Example 1: how to link css to html

<link rel="stylesheet" href="styles.css">

Example 2: add external css to html

<link rel="stylesheet" type="text/css" href="style.css">

Example 3: how do i link my css to my html

<link rel="stylesheet" type="text/css" href="stylesheet.css" media="screen"/>

Example 4: how to add css in html

/*
adding css without a css file
*/

/*
in head add
*/

<style>
	/* put in your normal css*/
</style>

Example 5: calling css file in html

<link rel="stylesheet" href="styles.css">

Tags:

Css Example