+ 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.
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>
+ 1
check this video too
https://www.youtube.com/watch?v=ZgRktKajC0k
+ 1
https://www.w3schools.com
here you can find anything you need about CSS HTML JavaScript and too many programming language