Highlighted

Code issue!

New Here ,
Jan 26, 2018

Copy link to clipboard

Copied

I have been coding a website lately, and I have stumbled upon an error that is preventing my CSS formatting to work completely.

The </section> line will not work, and the issue is described as followed:

As a somewhat new coder, I do not understand what this means nor how to fix it, and would, therefore, appreciate any help you can give!

Views

167

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Code issue!

New Here ,
Jan 26, 2018

Copy link to clipboard

Copied

I have been coding a website lately, and I have stumbled upon an error that is preventing my CSS formatting to work completely.

The </section> line will not work, and the issue is described as followed:

As a somewhat new coder, I do not understand what this means nor how to fix it, and would, therefore, appreciate any help you can give!

Views

168

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Jan 26, 2018 0
LEGEND ,
Jan 26, 2018

Copy link to clipboard

Copied

There is nothing wrong with the snippet of code you are showing us, the problem if there is one, lies elsewhere in your code. Just because you get an error message on a specific line it doesnt mean its always that line, often its somewhere else.

If you paste the complete code in the forum lm sure someone will be able to identify the problem.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jan 26, 2018 1
Adobe Community Professional ,
Jan 26, 2018

Copy link to clipboard

Copied

The error suggests you are missing the ending </div> for your <div class="container">

Most html elements need a specified start and end tag in order to be a complete element. Right now, it would appear that you open the container div, but aren't closing it before closing the <body> and <html> tags.

Seeing the rest of your code would tell us exactly what's wrong, but chances are, you just need an ending </div> on line 38 to fix it.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jan 26, 2018 1
Adobe Community Professional ,
Jan 26, 2018

Copy link to clipboard

Copied

When in doubt, run your page through code validation.

CC-BugReport.jpg

Nancy O'Shea, ACP
Alt-Web Design & Publishing

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jan 26, 2018 1