Linking html to css



  • hi i have written code in html then css in new window of notepad++ and related it by <link rel=‘stylesheet’ href=‘style.css’> but still it just shows the html on browser. what i do to link it correctly? what is problem with running of html with css?



  • @Munawar-Ali ,

    This Notepad++ Community forum is for discussing and asking questions about the Notepad++ text editor software. It is not a generic coding forum. (*)

    Please find a forum about HTML or web coding and ask your question there.

    *: and no, just because you’re using Notepad++ to type your code doesn’t make it on topic; the answer to your question is the same, irrespective of what editor you choose to edit your source code, which makes it off-topic for this forum. We call this a “cookie baking” problem, based on a major line in our FAQ Entry



  • Strange.
    I thought its a helping forum. how i find answer to my question if the community cant help then use of this forum is useless



  • @Munawar-Ali

    Your question is not about Notepad++.
    Why is it so strange that a question not about Notepad++ does not get an answer on a forum discussing Notepad++ ?



  • For future readers, don’t have the same misunderstanding as was expressed above: we help Notepad++ users to use Notepad++. We are quite happy to do so. I personally tackle many Notepad++-related problems in this forum nearly every day. Just look at the recent posting history for factual proof of this.

    What we cannot be is the entirety of stack exchange: we do not have experts on every possible programming language and every possible markup language and every possible cookie recipe.

    Just because you use a particular text editor to type your source code doesn’t mean that the forum for that text editor should be expected to answer any programming questions you have.

    If you have a C-programming question, go to a forum that specializes in C. If you have an HTML+CSS+JavaScript question, go to a forum about web authoring. If you have a question about cookie recipes, go to a cooking or baking forum. If you have questions about how to sort the text in your text file that you’re editing with Notepad++, this is the right place for you.

    But going back to @Munawar-Ali’s question: it was said, “still it just shows the html on browser” – that might be interpreted as “it is showing the raw HTML markup rather than the rendered webpage”. If that’s the case, then you can use Notepad++ to save the file as HTML and give it a .html extension. And when you are using Notepad++ to type your HTML and CSS files, you can have your saved HTML file in the active tab in Notepad++ and run View > View Current File in… to pick your favorite browser, and Notepad++ will issue the command for that browser to open the active file in the browser; if it’s properly saved as HTML, and the browser will render that HTML file as a local webpage; if the HTML is written correctly (with all the files in the right place relative to each other), then it will render correctly in the chosen browser.


Log in to reply