How to put together HTML and CSS | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to put together HTML and CSS

I am a beginner please teach me how is HTML and CSS use together

3rd Jun 2018, 2:46 PM
HERBERT SUAN
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
3rd Jun 2018, 2:52 PM
GAWEN STEASY
GAWEN STEASY - avatar
+ 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
3rd Jun 2018, 3:01 PM
GAWEN STEASY
GAWEN STEASY - avatar
+ 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">
16th Jul 2018, 5:37 PM
OLANIYI Babarinde Isola
OLANIYI Babarinde Isola - avatar
+ 1
tell me more simpler
3rd Jun 2018, 2:56 PM
HERBERT SUAN
+ 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!
3rd Jun 2018, 3:01 PM
Hemath Kumar
Hemath Kumar - avatar