Astonishing that no answer addresses or mentions the actual problem here. The CSS selector button #rock says “give me an element with the id rock inside a <button> element”, like this: But what you wanted is a <button> element with the id rock. And the selector for that would be button#rock (note the missing space between button and #rock). And as @Greg already mentioned: #rock is already specific enough to target the button and … Read more

Why is this HTML5 document invalid?

Well, it depends on what you are using. if you are using the File Upload option, it depends on which encoding the HTML file was saved with. if you are using the Direct Input option, it depends on the navigator. If you don’t want the validator to guess, and use UTF-8, you can add the following line inside the the head … Read more

Url.Action parameters?

The following is the correct overload (in your example you are missing a closing } to the routeValues anonymous object so your code will throw an exception): Assuming you are using the default routes this should generate the following markup: which will successfully invoke the GetByList controller action passing the two parameters:

Change Color of Fonts in DIV (CSS)

Your first CSS selector—social.h2—is looking for the “social” element in the “h2”, class, e.g.: Class selectors are proceeded with a dot (.). Also, use a space () to indicate that one element is inside of another. To find an <h2> descendant of an element in the social class, try something like: To get a better understanding of CSS selectors … Read more

An invalid form control with name=” is not focusable

This issue occurs on Chrome if a form field fails validation, but due to the respective invalid control not being focusable the browser’s attempt to display the message “Please fill out this field” next to it fails as well. A form control may not be focusable at the time validation is triggered for several reasons. The two … Read more