HTML – Add a UTM Query String to a Link
UTM parameters are a set of tags added to the end of off-site, incoming URLs to see where the visitor came from when arriving at your site.
UTM parameters are a set of tags added to the end of off-site, incoming URLs to see where the visitor came from when arriving at your site.
The HTML nofollow attribute tells search engines to ignore the link, and not follow it or pass PageRank to the target site or page.
A phone number listed on the page can be turned into a clickable link using the HTML a tag.
Some sites have a fixed icon bar sitting off to the side of the screen with their social channels always being displayed. This is how to create one.
Using pure CSS animation you can create a loading spinner for your site.
Before we all had cameras in our phones, people could take a Polaroid photo which would print directly from the camera, and had a unique, framed look.
If your site has a team member page with images, names, phone, email, etc., you can create rollovers to show all the pertinent info for each team member.
You may have a form field that auto populates information via JavaScript so you need to disable the input so that the user cannot change the value.
There may come a time when you have an HTML text link that needs to be temporarily disable for some reason (perhaps it’s auto-created by a CMS, but the page is not yet finished).
To give a site an interesting and modern feel, the transition property can be used to expand the length of the search field when the user clicks into it.
Fading in a page on load can give site items like a sidebar or icon boxes that load slowly the time to finalize their size/color without the user noticing.
HTML pre tags are used to format text just as it is written, whitespace and all. However, you may want to allow long lines of text/code to wrap.
Placeholders are text shown inside a form field that suggests to the user the type of input requested. They can be hidden with CSS when the field has focus.
Replacing text is usually done on the server side or with JavaScript, but there may be times when replacing text using CSS is the only viable solution.
When you have an SVG on your site and need to transition the fill color on hover, for instance, you need to set the fill in CSS as well as the SVG itself.
The JavaScript Date object can be used to count down to a specified daily time. For instance, this can be used for a “daily deals” timer.
The JavaScript Date object can be used to count down to a specified date and time. For instance, this can be used as a prompt for the user to take action.
The window.innerWidth and window.innerHeight properties can be used to get the current screen size of a page, NOT including its toolbars and scrollbars.
JavaScript can be used to return the current page URL to write to the page.
JavaScript can be used to write the current date to a page, or to write the year to the page, for instance, in the copyright section of your site.