Link tag not closed?


#1

exerciese 12

"link type="text/css" rel="stylesheet" href="stylesheet.css"
I typed of course with < before the link and > after stylesheet.css
but how to close this tag?

(I am new)


#2

@dstrijker

link is a self-closing tag so no need of a pair of tags like img tag. To self-close tag, you add a space and a slash to self close the tag like this:

<link href="url" rel="stylesheet" type="text/css" />

#3

okay thanks will try that


#4

how can you write it like that?


#5

@dstrijker

To print code, you can either use backtips like I do:

```
Replace this line with your code, do not remove backtips
```

Or simply indent your code by 4 spaces.

//here is some code

You can also do it that way

[code]
Here you put your code
[/code]

#6

thanks for helping
I think I am going to use this one [code]