background preloader

Tips

Facebook Twitter

Setting rather than Resetting Default Styling. 5 Web Files That Will Improve Your Website. The amount of code that developers encounter regularly is staggering.

5 Web Files That Will Improve Your Website

At any one time, a single site can make use of over five different web languages (i.e. MySQL, PHP, JavaScript, CSS, HTML). There are a number of lesser-known and underused ways to enhance your site with a few simple but powerful files. This article aims to highlight five of these unsung heroes that can assist your site. They’re pretty easy to use and understand, and thus, can be great additions to the websites you deploy or currently run. An Overview Which files are we going to be examining (and producing)? The files I’ll talk about here were chosen for their usefulness as well as their ease of implementation. We’re going to cover robots.txt, favicon.ico, sitemap.xml, dublin.rdf and opensearch.xml.

Let’s start with the most familiar one: robots.txt. Robots.txt The primary function of a robots.txt file is to declare which parts of your site should be off-limits for crawling. Creating a Robots.txt File Favicon.ico. Commonly Confused Bits Of jQuery. Advertisement The explosion of JavaScript libraries and frameworks such as jQuery onto the front-end development scene has opened up the power of JavaScript to a far wider audience than ever before. It was born of the need — expressed by a crescendo of screaming by front-end developers who were fast running out of hair to pull out — to improve JavaScript’s somewhat primitive API, to make up for the lack of unified implementation across browsers and to make it more compact in its syntax. All of which means that, unless you have some odd grudge against jQuery, those days are gone — you can actually get stuff done now.

A script to find all links of a certain CSS class in a document and bind an event to them now requires one line of code, not 10. To power this, jQuery brings to the party its own API, featuring a host of functions, methods and syntactical peculiarities. 1. .parent() vs. .parents() vs. .closest() parent(selector) This simply matches the one immediate parent of the element(s). 24 Irresistible jQuery Tips to Power Up Your JavaScript Skills  jQuery makes using JavaScript easy even for most designers because of it’s huge community and supply of really useful plugins.

24 Irresistible jQuery Tips to Power Up Your JavaScript Skills 

Using plugins is great for sure but knowing a bit more of what is going on behind the curtain can make you more powerful than you would expect. Digging into the coding details may not be that simple but with the good examples, tips and tricks in this article you should have a good chance. Advertisement Storing Data Use data method and avoid storing data inside the DOM.