Nerd or Turd Header


Posts Tagged ‘html’

End Tag “br” – W3C HTML Validation Error [SOLVED]

13 Mar
Share Button

If you try to validate your code to the HTML 4 W3C standard and the following validation error message is displayed then follow these steps on how to resolve this issue.

The Line number will be different for your coded project and will tell you exactly where the problem in the code is located.

Line 521: End tag “br”.

If you have the tag e.g:


You will need to change this to the following:


This will have resolved that error message. Repeat this for all other occurrences.

Please note: In XHTML the following line break codes can both be used:

<br /> and <br>

In HTML5 and XHTML both of the line breaks above can be used but <br> is preferred.

Share Button

CSS Code to Solve Div Alignment Problems

22 Oct
Share Button

CSS Cascading Style Sheet

I was having problems aligning data inside a div container but I could not see what was causing this issue.

I originally thought it was to do with padding, margins and then div alignments and then came up with this useful code to help fault find my divs.

Paste the following code into the div tag in your HTML page:

style=”display:inline-block; border: 3px solid purple;

This will show a bright border for the DIV so you can more easily fault find any problems.




Share Button