CSS tags <link>

link href=‘style.css’ rel=‘stylesheet

why is the atribute rel have a value of stylesheet, can the value be other than stylesheet, if yes can you give me an example.

1 Like

Hi @system4380302783

The “rel” attribute indicates the relationship between the current document and the linked resource.

Yes, people commonly use stylesheet and icon. However, there are also other options such as preload and alternate, among others like author and so on.

1 Like

i have another question

if html type document
have a parent (!DOCTYPE html) while its descendent is html, head and body

does css type document have the same tags as html

and thank you for answering my first question

1 Like

CSS documents do not use HTML tags. It is its’ own language. It makes reference to tags and classes, but you cannot have HTML in CSS.

1 Like

i see, thank you for the answer.

1 Like

I am having trouble linking the css to html in VS. It appears I have done everything according to the training video but it still doesn’t show anything I input into css. Help please?

1 Like

Hi core, would you be able to create your own post and paste the code you’ve currently written into it?

1 Like

how do I do that?I I have tried to follow the directions but don’t find them very clear. Sorry

1 Like

Ok, could you try instead just pasting your code as a reply here?

1 Like