Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

When I was writing html, I found that I couldn't reference external css files. What should I do?

+6 votes
asked Aug 23, 2023 by heshang (190 points)

1 Answer

+1 vote
answered Aug 28, 2023 by Peter Minarik (86,240 points)

I am not a web developer, nor am I familiar with OnlineGDB's web development intricacies. What you do looks right to me, so maybe the issue is specific to OnlineGDB.

One possible solution is to just open the site on your own PC. Every PC these days has a web browser that can load websites for you (you're looking at one right now).

Another workaround would be to place the CSS inside your HTML file, as described here, in section "Internal CSS".

Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...