How to use HTML and CSS together | Sololearn: Learn to code for FREE!

+6

How to use HTML and CSS together

Please tell me about this I am confused

12/1/2019 1:54:29 AM

Ãbhïšhêķ pãł

8 Answers

New Answer

+9

There are a few ways. Here on Sololearn you can just add your CSS in that section. You can also use style tags or a stylesheet. Best of luck.

+9

+7

<style> add your CSS in that section </style>

+4

HTML is used for markup, i.e it acts as a skeleton for the web page. CSS is used for presentation like colors, font size etc. The best approach is to separate markup from presentation. Write your HTML in file with html extension (page.html), then all your styles in a file with css extension(style.css) then link these two. in HTML page within the <head> use the link tag as shown below; <html> <head> <link rel="stylesheet" href="style.css"> </head> <body></body> </html>

+3

please review the course https://www.sololearn.com/Course/CSS

+3

Sololearn: Put your CSS in the CSS section Other Code/Text Editors: Make a seperate sheet (name.css) and link it to your page via the link tag in the head. All: You could also use the style tag in the head or body or use the style attribute in the tag.

+2

If you use other editors like sublime text, notepad ++, atom. To create a full WEB file, you need to create 3 folders, give them names, indicate in the settings what language you will write, then in the html file via <script> you can connect your other file with css or js

+2

Previous answers is true, but your website will be work slow. So just write in <head> tag <link> Example: <head> <link rel="stylesheet" href="example.css" /> </head>