+ 5
How to connect css code with html 5?
How to connect css code with html 5? please give me a suitable example.
12 Answers
+ 3
CSS have 3 type:
1. inline CSS:
<p style="color:red;"> This is an inline example. </p>
2. internal (embedded) CSS:
<html>
<head>
<style>
p{
color:red;
}
</style>
</head>
<body>
<p>This is an internal example.</p>
</body>
</html>
3. External CSS:
(htmlFile1.html)
<html>
<head>
<link rel="stylesheet" href="example.css">
</head>
<body>
<p>This is an external example.</p>
</body>
</html>
(example.css)
p{
color:red;
}
+ 7
you may have 3 types to connect the both 1.inline
2.internal
3.external
+ 6
Go through the tutorials on html and css and everything will become understandable.
+ 6
Perhaps you need information from this post at the initial stage of training.
https://www.sololearn.com/discuss/609156/?ref=app
+ 5
can any one give me suitable example
+ 5
<style> background-color: red; </style>
or
<link href="style.css">
+ 3
Start your CSS course.
+ 3
thanks Marcos
+ 2
HTML is not a programming, so there is no such thing as HTML accesses CSS.
+ 2
Welcome Mushtaq, hopefully you master it soon... 😉 I also just start learning CSS
+ 2
<link rel="stylesheet" href="style. Css" >
+ 1
?