Mathias Bynens 8/4/2011

HTML element + attribute notation

Read Original

The article analyzes various shorthand notations used to concisely refer to an HTML element combined with a specific attribute (e.g., the `download` attribute on an `<a>` tag). It evaluates options like `a.download`, `a[download]`, `<a download>`, and `a/@download` (XPath syntax), discussing their clarity and potential for confusion. It advocates for using the XPath-based notation or its simplified variant (`a@download`) for brevity and readability in technical writing.

HTML element + attribute notation

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week

No top articles yet