I’m trying to understand the structure and syntax for writing external CSS files. I have an HTML file and a CSS file. The HTML file is in a project folder. That folder also contains things I plan to use that will be put into subfolders that I will link to: Images -for photos, Scripts - for javascipt files, Styles - for CSS files, and Thumbnails - for images, icons, etc that will be clickable to link to other files. My HTML file has what I think is a basic structure for my website. I plan to use DIVs as you can see in the code. In the HTML file I’m posting, much of it is commented out for focus.
I’m using VSCode to edit files. In the code, I’m attempting to make the text “The Hutchins Clan” appear in Comic Sans MS font, without success.
It’s probably evident that I don’t know much about this process. I’m uncertain about what to put in the external CSS file, for example. I’m trying to keep it simple by limiting the HTML/CSS files to simply manipulating some text that will eventually become my web page masthead.
If someone will point me to wiki on a better way to link to my files, I’ll follow that lead. Until then, here they are.
HTML file (hutchins.html)
<!DOCTYPE html>
<html>
<head>
<!-- <meta charset="UTF-8">
<meta name="description" content="Hutchins Clan">
<meta name="keywords" content="HTML, CSS, JavaScript">
<meta name="author" content="Robert H. Hutchins">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="refresh" content="40"> -->
<title>
Hutchins Clan
</title>
<link
rel="stylesheet"
href="Styles/masthead.css">
<!--
<link
rel="stylesheet"
href="Styles/search-bar.css">
<link
rel="stylesheet"
href="Styles/navigation-column.css">
<link
rel="stylesheet"
href="Styles/parents-photo.css">
<link
rel="stylesheet"
href="Styles/parents-photo-caption.css">
<link
rel="stylesheet"
href="Styles/527-painting.css">
<link
rel="stylesheet"
href="Styles/527-painting-caption.css">
<link
rel="stylesheet"
href="Styles/family-photo">
<link
rel="stylesheet"
href="Styles/family-photo-caption.css"> -->
</head>
<body>
<div class="masthead"
<p>The Hutchins Clan</p>
</div>
<!--<div class="search-bar">
menu</menu></menu><!-- Search bar needs border in css style file
</div>
<div class="navigation-column">
navbar
<!-- Navigation column
</div>
<div class="parents-photo">
Healy & Pa<!-- Healy and Pa Photo
</div>
<div class="parents-photo-caption">caption
<!-- Parents photo caption
</div>
<div class="527-painting">527
<!-- 527 Painting
</div>
<div class="527-painting-caption">caption
<!-- 527 Painting caption
</div>
<div class="family-photo">family group
<!-- Family Photo
</div>
<div class="family-photo-caption">caption
<!-- Family Photo Caption
</div> -->
<style>
</style>
<script>
</script>
</body>
</html>
External CSS file (masthead.css)
<!DOCTYPE html>
<html>
<head>
<!-- <meta charset="UTF-8">
<meta name="description" content="Hutchins Clan">
<meta name="keywords" content="HTML, CSS, JavaScript">
<meta name="author" content="Robert H. Hutchins">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="refresh" content="40"> -->
<title>
Hutchins Clan
</title>
<link
rel="stylesheet"
href="Styles/masthead.css">
<!--
<link
rel="stylesheet"
href="Styles/search-bar.css">
<link
rel="stylesheet"
href="Styles/navigation-column.css">
<link
rel="stylesheet"
href="Styles/parents-photo.css">
<link
rel="stylesheet"
href="Styles/parents-photo-caption.css">
<link
rel="stylesheet"
href="Styles/527-painting.css">
<link
rel="stylesheet"
href="Styles/527-painting-caption.css">
<link
rel="stylesheet"
href="Styles/family-photo">
<link
rel="stylesheet"
href="Styles/family-photo-caption.css"> -->
</head>
<body>
<div class="masthead"
<p>The Hutchins Clan</p>
</div>
<!--<div class="search-bar">
menu</menu></menu><!-- Search bar needs border in css style file
</div>
<div class="navigation-column">
navbar
<!-- Navigation column
</div>
<div class="parents-photo">
Healy & Pa<!-- Healy and Pa Photo
</div>
<div class="parents-photo-caption">caption
<!-- Parents photo caption
</div>
<div class="527-painting">527
<!-- 527 Painting
</div>
<div class="527-painting-caption">caption
<!-- 527 Painting caption
</div>
<div class="family-photo">family group
<!-- Family Photo
</div>
<div class="family-photo-caption">caption
<!-- Family Photo Caption
</div> -->
<style>
</style>
<script>
</script>
</body>
</html>