Hello I have a div tag that the program Brackets, shows in Red color, when I open the webpage locally, is not showing correctly the webpage for this reazon.
I don’t understand. i see the div tags that are in red, are well write.
A attach a picture of the code. Any body now about this? Thanks for any help
Hello,
I couldn’t exactly spot the div in red color you were talking about. However, the HTML code you provided already contains an error, one of the divs does not have a corresponding close tag.
First, you have a div with class flex-child green at the top then two divs, one with class caja uno & the second with caja dos, as for the final one , the one with the class caja tres, it does not have a corresponding closing tag because the editor is assuming the final div closing tag belongs to flex-child green div
I would suggest you use VS Code instead. It has much better visual guides for nesting and indentation. Install the Prettier extension as well and set it to format on save. It will fail to format if you have invalid HTML structure and show the line with the issue.