The other day I was investigating some odd behaviour in a form. Users were clicking the text label next to a radio input (which if set up correctly selects that radio input) but were then unable to use the Enter key to submit the form.
This contradicts with the idea that if a user’s browser focus is on a form input, the Enter key will submit that form. Here’s HTML for a basic form with two radio inputs:
In CSS, selectors are patterns used to select the element(s) you want to style. But what’s the best way of using them to aid maintainability and performance in your code?
One of the most common ways to mark-up and style a web page has always been to use ID selectors to target main sections of a page, along with element and class selectors to target the content within. Here’s an example of a basic news feed module.
This blog is my fresh new slice of cyberspace, primarily for recording web development techniques and news I find interesting for future reference. I’m posting it publicly, so feedback is always welcome!
Only about 5 years late (something about cobbler’s children) my redesigned portfolio site has arrived. A place to house my CV and record past work and projects, but also a place to start that infamous ol’ thing – a blog. I’ll be posting here when the mood takes me, to record new web development techniques, industry news and generally information I feel like whimsically bawling to the world.