AlphaGamer150 AlphaGamer150 - 11 months ago 49
CSS Question

HTML/CSS Stylesheet won't work

Im probably missing something relay obvious but why won't this code work?

<link type="stylesheet" href="css/main.css">

Basicly im trying to get a stylesheet that is called main.css in a folder called css.

I don't know why it won't work so please help me!

Answer Source

Wrong syntax:

<link rel="stylesheet" type="text/css" href="css/main.css" />
      ^^^              ^^^^

Note the attributes...