Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

External Stylesheets Code Incorrect or Needs Additional Reference #37699

Closed
jfc3-dol opened this issue Jan 17, 2025 · 1 comment
Closed

External Stylesheets Code Incorrect or Needs Additional Reference #37699

jfc3-dol opened this issue Jan 17, 2025 · 1 comment
Labels
closed: question A user misinterpretation or support question. No action required. Content:Learn Learning area docs

Comments

@jfc3-dol
Copy link

MDN URL

https://developer.mozilla.org/en-US/docs/Learn_web_development/Howto/Solve_CSS_problems/CSS_FAQ

What specific section or headline is this issue about?

Why doesn't my CSS, which is valid, render at all?

What information was incorrect, unhelpful, or incomplete?

The article mentioned the reason below for the reasons why CSS might not be applied in this.

To be applied, a CSS stylesheet must be served with a text/css MIME type.

Nowadays, external CSS files use rel="Stylesheet", which is referenced in the MDN article Getting started with CSS page under the heading "External stylesheets".

<link rel="stylesheet" href="styles.css" />

What did you expect to see?

I thought it would mention both or the one that is now the standard.

Do you have any supporting links, references, or citations?

nope

Do you have anything more you want to share?

nope

MDN metadata

Page report details
@jfc3-dol jfc3-dol added the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Jan 17, 2025
@Josh-Cena
Copy link
Member

When we say "with a text/css MIME type" we mean that the HTTP response that serves the CSS code must have the Content-Type: text/css header. It has nothing to do with the <link rel>.

@Josh-Cena Josh-Cena closed this as not planned Won't fix, can't repro, duplicate, stale Jan 30, 2025
@Josh-Cena Josh-Cena added Content:Learn Learning area docs closed: question A user misinterpretation or support question. No action required. and removed needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. labels Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed: question A user misinterpretation or support question. No action required. Content:Learn Learning area docs
Projects
None yet
Development

No branches or pull requests

2 participants