-2

I have tried <link rel="stylesheet" type="text/css" href="style.css"> in markdown but that didn't work. Is there a way to do that?

I know using a style tag can work, but I wonder how to import a css in markdown. So I think the problem is different with How to use CSS in Markdown? . The link doesn't mention importing css in a markdown.

SNORLAX
  • 135
  • 8

1 Answers1

-2

It should work, you can add css in three different ways

  1. inline style

example : <p style="color: red">Username </p>

  1. internal styling with the help of tag example : <style> p {color: 'red'}</style>

  2. external link Using link tag, we can load css into html file

    <link rel="stylesheet" href="<source-link>" />

Ramesh HB
  • 7
  • 4
  • 1
    1st) This is a commentary and not an answer. 2nd) link-only answers do not fit the guidelines as an answer. 3rd) Your link does not apply here, it is not an HTML question. – tacoshy Feb 20 '23 at 07:28
  • @tacoshy is this fine now. – Ramesh HB Feb 20 '23 at 07:56
  • You still miss the point. We do not talk about HTML files we talk about **Markdown** which is a completely different Markup language! So throwing HTML solutions around here is incorrect. – tacoshy Feb 20 '23 at 08:52