The getDay() method is used to get the day of the week for the specified date according to local time, where 0 represents Sunday. The value returned by getDay() is an integer corresponding to the day of the week: 0 for Sunday, 1 for Monday, 2 for Tuesday, and so on.
The getHours() method is used to get the hour for a given date, according to local time. The value returned by getHours() is an integer between 0 and 23.
The getMinutes() method is used to get the minutes in the specified date according to local time. The value returned by getMinutes() is an integer between 0 and 59.
The getSeconds() method is used to get the seconds in the specified date according to local time. The value returned by getSeconds() is an integer between 0 and 59.
The :link selector is a pseudo-class that targets all unvisited anchor (a) elements on a page.
When used in combination with the :hover, :link must be used first, or else not be defined at all, in order for the :hover styles to work. This is because they are equally specific, so if :link came after, those styles would override the hover styles.
The :link pseudo-class will target all anchor elements that have an href attribute, even if the href has an empty value.
The :last-child selector allows you to target the last element directly inside its containing element.
It is used to style content based on its relationship with parent and sibling content.
Using :last-child is similar to :last-of-type but with one important difference: it is less specific. :last-child will only try to match the very last child of a parent element, while last-of-type will match the last occurrence of a specified element.