HTML 5: Is it <br>, <br/>, or <br />? I've tried checking other answers, but I'm still confused--especially after seeing W3schools HTML 5 reference. I thought HTML 4.01 was supposed to "allow" single-tags to just be <img> and <br>. Then XHTML came along with <img /> and <br /> (where someone said that the space is there for older browsers). Now I'm wondering how I'm supposed to format my code when practicing HTML 5. <!DOCTYPE HTML> Is it <br>, <br/> or <br />? Answer: Simply <br> is sufficient. The other forms are there for compatibility with XHTML; to
undefined
Change an input's HTML5 placeholder color with CSS Chrome supports the placeholder attribute on input[type=text] elements (others probably do too). But the following CSS doesn't do diddly squat to the placeholder's value: input[placeholder], [placeholder], *[placeholder] { color: red !important; } <input type="text" placeholder="Value"> Value will still remain grey instead of red. Is there a way to change the color of the placeholder text? I'm already using the jQuery placeholder plugin for the browsers that don't support the placeholder attribute natively. Answer : Implementation There are three different implementations: