How to use HTML and CSS together
Please tell me about this I am confused
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.
<style> add your CSS in that section </style>
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>
please review the course https://www.sololearn.com/Course/CSS
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.
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
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>