Sora Tamashii
0
Q:

css link


    <head>

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

    </head>
 
20
<link href="main.css" rel="stylesheet">
7
/*a normal, unvisited link*/
a:link{
	color: green;
}
/*a link the user has visited*/
a:visited{
	color: purple;
}
/*a link when the user mouses over it*/
a:hover{
	color: yellow;
}
/*a link the moment it is clicked*/
a:active{
	color: brown;
}
12
a:hover {
  text-decoration: underline;
}
3
<!-- this is a link tag -->

<link rel="" href="">
<!-- href is the location of your external ressource 
	
list of rel used with a link tag (popular) : 
	- stylesheet (css)
	- alternate
	- author
	- external 
	- incon
	- index 
-->
4

  <!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" 
  href="mystyle.css">
</head>
<body>

<h1>This is a heading</h1>

  <p>This is a paragraph.</p>

</body>
</html> 
5
<head>
      <link rel="stylesheet" type="text/css" href="theme.css"> 
</head>
 
3
  <link rel="stylesheet" href="PathToYourFile.css">
18
<link rel="stylesheet" href="styles.css">
3
a {
  background-color: red;
  color: white;
  padding: 1em 1.5em;
  text-decoration: none;
  text-transform: uppercase;
}
3

New to Communities?

Join the community