473,503 Members | 10,012 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

External .css help request...

BB
Below is my html and below that is my .css external file. They are named
test.html and test.css. I have both of the files uploaded to the web server
at the root.

My question is: where did I make a mistake? The browser shows no styles
(colors for the h1 and h2 tags)

<HTML>
<HEAD>
<TITLE>Bingo Players Town Hall</TITLE>
<LINK REL=stylesheets TYPE="text/css" HREF="test.css">
</HEAD>
<BODY>
This is the body start...
<H1> Testing...this is an H1 tag</H1>
<h2>This should be red.</h2>
</BODY>
</HTML>

and the test.css file:

<!--
BODY {background-color: #ff1493; color: #000000;}
h1 {color:green;}
h2 {color: red; }
-->
Jul 20 '05 #1
1 2178
BB <news:yF***************@newssvr16.news.prodigy.com >:
Below is my html and below that is my .css external file.
My question is: where did I make a mistake? The browser shows
no styles (colors for the h1 and h2 tags)

<HTML>
<HEAD>
<TITLE>Bingo Players Town Hall</TITLE>
<LINK REL=stylesheets TYPE="text/css" HREF="test.css">
rel="stylesheet" (as someone else pointed out). And...
[...]
and the test.css file:

<!--
BODY {background-color: #ff1493; color: #000000;}
h1 {color:green;}
h2 {color: red; }
-->


Get rid of those HTML comment tags. They're not needed in an
external .css file.

--
Rob - http://rock13.com/
Web Stuff: http://rock13.com/webhelp/
Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
11613
by: konsu | last post by:
hello, when a web request comes to my index.php, i would like index.php to execute a php script stored in an external file and capture the external script's output to a variable. i am doing...
4
9327
by: Erohsik | last post by:
I am using external tables to load data from the data file. But the log files are getting created in the datafile's directory (because of CREATE OR REPLACE DIRECTORY ...) But I want those log...
0
2147
by: Sachy | last post by:
Hi, I have received following error in my ASP.NET application. Many of buttons on the different pages are generating this error. I am not sure what I did until this morning code was working...
2
7316
by: ozgan.net | last post by:
Hi everyone, I created my first COM object, but I took below errors. Why I didn't use socket functions. I defined *.def file __imp__WSAStartup@8 PRIVATE __imp__socket@12 PRIVATE...
2
2123
by: Harry Stangel | last post by:
Noble reader, My goal is to obtain the current time on the web server and display it in the client's browser. I want the server time displayed independent of the client's current clock setting,...
2
1825
by: Ian Davies | last post by:
Hello Stefan or anyone else who can help Some time ago you suggested a solution to my original post about connecting to data on a remote server from a VB application where my host doesnt allow a...
8
1970
by: Flip | last post by:
I have a website that's using Master pages (very cool). But when I put JS on there (to close the browser for example) coming from an external file, when I navigate away from the first page, the JS...
38
3963
by: Neo Geshel | last post by:
I am seeking a method to load one JS file directly into another, *without* having to dynamically write <scripttags. Is there any method whereby I can call only one external JS file using a ...
2
2339
by: =?Utf-8?B?YzY3NjIyOA==?= | last post by:
Hi all, When an external resouce programmatically post the XML document as content of http post request, and at server-side, I can read the XML data from http request's body. Just like this...
10
2372
by: Stefan Weber | last post by:
Hi, I'm trying to access the JavaScript code contained in a <scripttag via its "text" attribute. This works well, if the code is embedded in the HTML page. However, when the code is in an...
0
7194
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7070
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7267
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7316
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5566
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4666
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3148
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1495
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
729
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.