How do i link HTML and CSS together, when Blogging? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How do i link HTML and CSS together, when Blogging?

11th Jul 2017, 8:06 PM
Agbo Peace
Agbo Peace - avatar
3 Answers
+ 8
You can put your CSS code inline with what you want to style like this: <div style="background-color:green"> </div> Or use the style tag in your HTML document: <style> body{ } </style> Or link to an external CSS document: <head> <link rel="stylesheet" href="example.css"> </head>
11th Jul 2017, 8:13 PM
Kabulput
Kabulput - avatar
+ 2
I don't know anything about blogging, but HTML elements have the "style" attribute, which allows you to input your CSS directly to the element if you don't have access to the actual CSS for the site.
11th Jul 2017, 8:11 PM
AgentSmith
+ 1
<head> <link rel="stylesheet" href="example.css" /> <head> put the Css file at the same folder as the HTML one.
11th Jul 2017, 8:37 PM
mexikodro thanksgiving samples 1/1
mexikodro thanksgiving samples 1/1 - avatar