Linik-problem with HTML-CSS

G

Guest

I'm learning both HTML & CSS.
I could not figure it out my self why it is not linked.
Please somebody check it for me:

HTML:
<html>
<head>
<META http-equiv="Content-Style-Type" content="text/css">
<STYLE>
<LINK href="search.css" rel="stylesheet" type="text/css">

</STYLE>
<title>
</title>
</head>
<body>
<table cellpadding="0" cellspacing="0" width="660">
<tr>
<td height="40" width="110" rowspan="2"> </td>
<td height="20" width="440" colspan="4">
<h1>Title</h1></td>
<td height="40" width="110"> </td>
</tr>
<tr>
<td height="20" width="110"> </td>
<td height="20" width="110"> </td>
<td height="20" width="110">Home</td>
<td height="20" width="110">Contact</td>
<td height="20" width="110"> </td>
</tr>
<th colspan="3" height="20" width="110"> </td>
</colspan="3"> </td>
<span style="font-weight: 400">Menu</span><th colspan="3" height="20"
width="110"> </td>
</colspan="3"> </td>

<tr>
<th colspan="3" height="300" width="110"> </td>
</colspan="3"> </td>
<th colspan="3" height="300" width="110"> </td>
</colspan="3"> </td>
<tr>
<th colspan="6" height="20">
</colspan="6"> </td>

</tr>
</table>
</body>
</html>

CSS: (saved as: search.css)

H1
{
font-weight: bold;
font-size: 12px;
font-family: tahoma;
font-style: normal;
font color: red
}
{background: blue}

I appriciate your help.
 
T

Trevor L.

Vanillla said:
I'm learning both HTML & CSS.
I could not figure it out my self why it is not linked.
Please somebody check it for me:

Place this in the <head> *outside* the <style> tags
<LINK href="search.css" rel="stylesheet" type="text/css">
They are not needed for an external reference
 
M

Murray

There is no link (e.g., <a href="whatever.html">link</a>) in that code.

H1
{
font-weight: bold;
font-size: 12px;
font-family: tahoma; <-- you need to specify a family of fonts, not just 1
font-style: normal; <-- no need to specify the default
font color: red
}
{background: blue} <--- what is this?
 
G

Guest

Thanks, I did. It changed the font style.
I realized that I missed a dash at font color, ; after correction the font
became bold?
It isn't red yet, and the background is still white.
Vanillla
Using: MW 2003, Excell 2003, Publisher 2003, FP 2003,
http://www.searchenginelocator.com
Back it Up!
 
G

Guest

Thanks for your comment. I just copied the css from a tutorial website and
tried to link it to my htlm to learn more.
 
M

Murray

I bow in humility. You are absolutely correct. It should not be between
<style> and </style>, and further, it will not work that way.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top