-3
How cool that you are venturing into this area of web development. What you are wanting to do is an import of a file css to your file html.
Suppose you created a project called shop and represented him through a folder named /loja
. Your HTML and CSS files should be inside this folder for better organization. At the root of the folder there are two files that we can call index.html
representing your HTML markup file and style.css
representing your CSS styling file.
Note that the two files are in the root folder, i.e., inside the folder
loja
.
To import a style sheet (css style.) it is necessary to declare an element link
in the scope of the element head
.
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
</body>
</html>
The W3C Schools has great content for learning HTML and other languages of interest.
Thanks for the personal help
– Gian F