+ 10
How do we add CSS into html?
9 odpowiedzi
+ 4
In three ways you can add CSS[style] the HTML tags:
1
<link href="mystyle.css" rel="stylesheet" type="text/css"></link>
2
<head>
<style>
body{
background:red;
}
</style>
</head>
3
<body>
......
.......
............
<style>
body{
background:red;
}
</style>
</body>
you can add inline style like below:
<body style="background:red"></body>
+ 11
Bihari Babu Yes you add it into the <head> tag
+ 10
I think we add it into the <head> tag of html. Isn't it?
+ 3
<link rel="stylesheet" href="destination to your css file">
Put this between <head> tags.
+ 3
<link rel="stylesheet" href="path of css file">
Add this line in your head tag inside the HTML tag. Hope it will help you.
+ 3
In the head tag either by using style tag or <link rel="stylesheet" href="css file path">
+ 3
İn <head > tag
<link rel="stylesheet" type="text/css" href="style.css">
And create style.css but index and style.css in same folder
you can change style.css's name
+ 3
Para vincular tu archivo .css con tu archivo html usas la etiqueta <link> ejemplo:
<head>
<link rel="stylesheet" type="text/css" href="archivo.css">
</head>