0
How to put together HTML and CSS
I am a beginner please teach me how is HTML and CSS use together
5 Answers
+ 5
if you want to use internel css then you have to add <style ></style> tag in between the head tags in your html code and save that code by. htm or. html extension
or if you want to use external css then you have to write your css code in a file and save it as. css extension and to connect that you have to use
<link rel="stylesheet" type="text/css"href="filename.css">
in between the head tags
+ 5
https://www.w3schools.com/html/html_css.asp
go through this link if you got any problem to understand mention me again I'll try to solve your problems
+ 2
link css
inline,
internal
external css
external css is advised, so link with something like this
<link rel="stylesheet" href=style.css" type="text/css">
+ 1
tell me more simpler
+ 1
You can use CSS in two ways,
Write a CSS file separately,then link it.
Or write CSS Program in the same HTML file.
Here are the ways to implement these two:
1.If you are going to write in separate file, save it with the extension " .css"
then add line to your HTML file:
<link rel="stylesheet" type="text/css" href="your_css_filename.css">
add this in head tag!!
2. If you want to add your CSS Program in the same HTML file:
<style>
Your CSS Program
.
.
.
.
</style>
place this tag in head tag!