About HTML and CSS | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

About HTML and CSS

Hi I just start my CSS course and i confused about how can i mix the css and html code in the notepad and run it from the browser. sorry my bad english. thnx.

13th Jun 2017, 10:27 PM
A.RAHMAN
A.RAHMAN - avatar
3 Answers
+ 11
name your file with .html extention file.html then edit it as html page you can see a basic template for it here https://www.sitepoint.com/a-basic-html5-template/ about CSS you can either have another file with the CSS code and link the html page to it (make sure that the html file and the css are inside same directory) file.css inside the html <head> tag: <link rel="stylesheet" href="file.css"> another option is to have the css inside <style> tag in the html <head> tag <style> div{ background-color:#73ad7b; font-family:Arial; } </style>
13th Jun 2017, 10:39 PM
Burey
Burey - avatar
13th Jun 2017, 11:27 PM
Raz
Raz - avatar
+ 1
https://www.w3schools.com here you can find anything you need about CSS HTML JavaScript and too many programming language
14th Jun 2017, 9:01 AM
Mahmoud SOUAYFAN