UI / UX
October 20, 2019
Function parameters can be initialized with a default value in the parameter list itself using ES6 default parameters.
October 18, 2019
The Number() method can be used to convert a string containing numeric characters to a number upon which mathematical operations can be done.
October 17, 2019
The Math.sign() is a new method introduced in ES6 that can be used to find whether a number is positive or negative or a zero.
October 15, 2019
The Math.trunc() method can be used to truncate the fractional portion of a number. The number can also be rounded to the next integer using Math.round(), Math.ceil() and Math.floor() methods.
October 13, 2019
HTML〈address〉Tag - Setting Address Information for a Webpage
The HTML〈address〉 element represents address information for the webpage. It can be read by machines and scripts for understanding that the included content is an address of some sort.
October 11, 2019
How to Create a Checkmark / Tick with CSS
A checkmark or a tick icon can be created with pure CSS by drawing two straight lines and rotating them.
October 9, 2019
HTML〈mark〉Tag - Marking Text of Special Importance
The HTML〈mark〉element can be used to highlight text of special relevance in a webpage. This tag can be read by machines, bots, screen readers etc to use the highlighted for their learning purposes.
October 7, 2019
October 6, 2019
How to Access "this" in Event Handlers and Callbacks with globalThis Property
The globalThis is a global property referring to the global object. This makes it very easy to access this inside callbacks, event handlers, inner functions etc.
October 3, 2019
October 1, 2019
September 29, 2019
Keys of a Javscript object can be retrieved using the Object.keys() method. This returns own enumerable property names as an array.
September 27, 2019
Using :placeholder-shown to Customize CSS for Empty Text Input
:placeholder-shown is a selector for 〈input〉and〈textarea〉 elements who are currently showing placeholder text. This can be be used in forms to highlight empty text input.
September 25, 2019
HTML〈caption〉Tag - Giving Title to Tables
The 〈caption〉 tag is used to give a caption or title to HTML tables. This is the correct way of giving a title to a table as per the HTML specification.
September 24, 2019
The sort() method can be used to sort an array of objects. A custom callback function can be written that can sort using key(s) of the included objects.
September 21, 2019
September 19, 2019
HTML inputmode Attribute for Textboxes
The HTML inputmode attribute can be used for textboxes in a webpage. This can effectively customize the onscreen keyboard taking in the mind the data to be filled for the textbox - telephone, email, numbers etc.
September 17, 2019
Modern HTTP Headers for Web Applications (VIDEO)
Many HTTP headers have been newly introduced like Content-Security-Policy, Feature-Policy etc. These new headers can make your application secure and boost its performance.
September 15, 2019
The window.getComputedStyle() method can be used to get current values of CSS properties of an element.
September 13, 2019
Finding Space Used / Space Remaining for Local Storage
The browser allots a specific amount of space to each website that is visited. This used space and the space remaining can be found with the StorageManager API.
© UsefulAngle.com 2016 - 2019. All code MIT license.
UsefulAngle on Twitter
UsefulAngle on Facebook