<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[my css code for color not working and error message when run]]></title><description><![CDATA[<p dir="auto">I can not get the background or text to change colors.  I am using HTML and CSS.  The javascript and margins structures work.  When I run it, Notepad++ says: Syntax error line: 1, pos:1 and [null] line: 9, pos:4.  I am using chrome and tried firefox. Here is my code:<br />
&lt;!DOCTYPE html&gt;<br />
&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;My First Web Page &lt;/title&gt;<br />
&lt;meta name=“description” content=“Page Description Here”/&gt;<br />
&lt;meta http-equiv=“Content-Type” content=“text/html”; charset=“utf-8”/&gt;<br />
&lt;meta name=“viewport” content=“width=device-width, initial-scale=1”/&gt;<br />
&lt;style type=“text/css”&gt;<br />
Body{</p>
<pre><code>	    background-color: red;
		color:blue;
		
	}
&lt;/style&gt;
	&lt;script&gt;
		function myFunction() {
			var x = document.getElementById ("fname");
			x.value = x.value.toUpperCase();
		}
	&lt;/script&gt;
</code></pre>
<p dir="auto">&lt;/head&gt;</p>
<p dir="auto">&lt;body&gt;<br />
This is a Sample HtmL Document.<br />
This Javascript function will capitalize my name:<br />
Enter your name: &lt;input type=“text” id=“fname” onchange=“myFunction()”&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/24341/my-css-code-for-color-not-working-and-error-message-when-run</link><generator>RSS for Node</generator><lastBuildDate>Mon, 17 Aug 2026 11:15:47 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/24341.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 05 Apr 2023 22:35:18 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to my css code for color not working and error message when run on Sat, 08 Apr 2023 03:39:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/michelle-vedros" aria-label="Profile: Michelle-Vedros">@<bdi>Michelle-Vedros</bdi></a> ,<br />
In addition to what <a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a> has pointed out to you, your code doesn’t work, even when you use the Notepad++ menu’s <code>View-&gt;View Current File in-&gt;(browser choice)</code> to view it. That’s because your code is in error. You need to consult an HTML/CSS/Javascript site, like the <a href="https://www.w3schools.com/" rel="nofollow ugc">W3C Schools</a> courses to better learn what you did wrong. I tried your code that way and in both Chrome and Firefox and it did exactly what you coded it to do. It just didn’t do what you wanted it to do, and that’s why I’ve just given you the link you need to follow to learn how to do it right.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/85578</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/85578</guid><dc:creator><![CDATA[Lycan Thrope]]></dc:creator><pubDate>Sat, 08 Apr 2023 03:39:27 GMT</pubDate></item><item><title><![CDATA[Reply to my css code for color not working and error message when run on Fri, 07 Apr 2023 13:54:45 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/michelle-vedros" aria-label="Profile: Michelle-Vedros">@<bdi>Michelle-Vedros</bdi></a> ,</p>
<p dir="auto">Notepad++ doesn’t “run” HTML/CSS/JS, so your problem statement is incorrect from the get-go.</p>
<p dir="auto">In case you have confused Notepad++ with the PreviewHTML plugin that you may have installed – PreviewHTML uses an ancient rendering engine at its core, which (I believe) predates the HTML5 you are using – and I wouldn’t doubt if it gave anomolous results for anything but basic HTML.  It is likely that other plugins that embed a rendering engine also may not be up to the task.  Use a real browser for rendering HTML5, and let Notepad++ do what it’s good at: helping you edit the underlying source code.</p>
<p dir="auto">Once you do use a browser for rendering it, if you are still having trouble getting your HTML + CSS + JS to work, you should find a forum dedicated to HTML + CSS + JS, not a forum about the text editor that you happened to use to type that code: whether you type the code with Notepad++ (your best bet) or <code>notepad.exe</code> or <code>COPY CON</code>, the resulting HTML + CSS + JS will be the same.  As it has been colloquially phrased, we cannot be expected to help you <a href="https://community.notepad-plus-plus.org/topic/15958/faq-desk-you-ve-asked-your-question-in-the-wrong-place">bake your cookies</a> just because you use Notepad++ to type the recipie (see our <a href="https://community.notepad-plus-plus.org/topic/15958/faq-desk-you-ve-asked-your-question-in-the-wrong-place">FAQ</a> for that reference).</p>
]]></description><link>https://community.notepad-plus-plus.org/post/85560</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/85560</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Fri, 07 Apr 2023 13:54:45 GMT</pubDate></item><item><title><![CDATA[Reply to my css code for color not working and error message when run on Thu, 06 Apr 2023 22:03:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/lycan-thrope" aria-label="Profile: Lycan-Thrope">@<bdi>Lycan-Thrope</bdi></a> When I try to run it in NPP, it shows errors: Syntax line1:pos1 [null line 9: pos 4], but I don’t see the error.  I was wondering if someone else could.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/85559</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/85559</guid><dc:creator><![CDATA[Michelle Vedros]]></dc:creator><pubDate>Thu, 06 Apr 2023 22:03:06 GMT</pubDate></item><item><title><![CDATA[Reply to my css code for color not working and error message when run on Wed, 05 Apr 2023 22:50:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/michelle-vedros" aria-label="Profile: Michelle-Vedros">@<bdi>Michelle-Vedros</bdi></a> ,<br />
So what does this have to do with NPP? NPP is not a browser. It is a text editor, so I’m at a loss as to what you expect to happen.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/85521</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/85521</guid><dc:creator><![CDATA[Lycan Thrope]]></dc:creator><pubDate>Wed, 05 Apr 2023 22:50:30 GMT</pubDate></item></channel></rss>