"Tag Start is not closed" error -> in the html section of a Django project..

Writing this:

<link rel="stylesheet" href="{%static "css/myStyle.css"%}"/>

Or this:

<img src = " {% static "images/easy.jpg" %}" alt="" width="500" height="500">

Gives me "Tag Start is not closed", however the code works, it pisses me off.

So What is the solution, please???

 

1

Hello,

The issue is in nested quotation symbols, it's a good practice to use single quotes ' inside double quotes " to increase readability and not to confuse the interpreter. 

Placing quotation symbols like this will solve the problem: 

<link rel="stylesheet" href="{%static 'css/myStyle.css'%}"/>
<img src = " {% static 'images/easy.jpg' %}" alt="" width="500" height="500"/>
1

Thx, it works perfectly now.

0

请先登录再写评论。