What was the tag used for?

XMP and PRE differ. Content within PRE tags is formatted as follows: Content is shown with a fixed font, All whitespace is preserved, and Each line break begins a new line. If you want to include special characters such as <, > and & within PRE tags, they must be escaped so that they are … Read more

Best way to document anonymous objects and functions with jsdoc

You can document stuff that doesnt exist in the code by using the @name tag. /** * Description of the function * @name IDontReallyExist * @function * @param {String} someParameter Description */ /** * The CallAgain method calls the provided function twice * @param {IDontReallyExist} func The function to call twice */ exports.CallAgain = function(func) … Read more

Closing HTML tag issue

These are void elements. This means they aren’t designed to contain text or other elements, and as such do not need — and in fact, cannot have — a closing tag in HTML.1 However, they should have a <label> associated with them: <input id=”my_id” type=”radio” name=”radio_name”> <label for=”my_id”>Radio Label</label> Radio buttons by nature can’t contain … Read more

What is initial scale, user-scalable, minimum-scale, maximum-scale attribute in meta tag?

They are viewport meta tags, and is most applicable on mobile browsers. width=device-width This means, we are telling to the browser “my website adapts to your device width”. initial-scale This defines the scale of the website, This parameter sets the initial zoom level, which means 1 CSS pixel is equal to 1 viewport pixel. This … Read more

Alt or title attribute for i tag

You can use the title attribute on an i element, like any element, e.g. <i class=”icon-lock” title=”This symbolizes your being locked inside”></i> Whether it helps is a more difficult issue. Browsers usually show the title attribute value as a “tooltip” on mouseover, but why would the user mouse over the icon? And such tooltips are … Read more

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