How do I vertically align text in a div?

The correct way to do this in modern browsers is to use Flexbox. See this answer for details. See below for some older ways that work in older browsers. Vertical Centering in CSShttp://www.jakpsatweb.cz/css/css-vertical-center-solution.html Article summary: For a CSS 2 browser, one can use display:table/display:table-cell to center content. A sample is also available at JSFiddle: Expand snippet … Read more

What is the main difference of
and

In practice, </br> does not exist. Just <br> or <br />. However, the difference is the position, and is universal for all XML tags. <TAG_NAME> indicates the beginning of a tag, and </TAG_NAME> indicates the end of a tag. When a tag is used with nothing between it, then a self-closing, or null tag can be used, which combines the beginning and end. It … Read more

HTML 5: Is it
,
, or
?

Simply <br> is sufficient. The other forms are there for compatibility with XHTML; to make it possible to write the same code as XHTML, and have it also work as HTML. Some systems that generate HTML may be based on XML generators, and thus do not have the ability to output just a bare <br> tag; if you’re using … Read more

How to create an HTML button that acts like a link

HTML The plain HTML way is to put it in a <form> wherein you specify the desired target URL in the action attribute. If necessary, set CSS display: inline; on the form to keep it in the flow with the surrounding text. Instead of <input type=”submit”> in above example, you can also use <button type=”submit”>. The only difference is that the <button> element allows children. You’d … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)