Text does not change to the colour i set it to when i run the program

+1 Lotfi Ace · March 16, 2015
//This is my HTML CODE


Lotfi's Website


Here is my css code

//I've named it main, and the html file is called index.html.


Theyre both in the same folder called HTML5 FOLDER in the NOTEPAD++ directory. First i just had that folder on the desktop but it wasnt working, and it still doesnt work when ive moved it to the notepad++ directory.

The linkage to the CSS file might not be the same as the one in the video, I've tried many suggestions and variations on the internet , none of which have worked so far, so no point saying my code linkage was incorrec, i think there is something else to it

thank you

Post a Reply


Oldest  Newest  Rating
+1 Hossein Vahabi · March 16, 2015
try like this

<!doctype html>
<meta charset="utf-8" />
<title>Your Title Goes Here!</title>
<style type="text/css">
<div id="ab">some text here...</div>
  • 1

HTML / CSS / Web Design


Discuss, share, ask, learn and teach HTML5 and CSS3.