DEV Community

Discussion on: Do you still use IDs for unique elements?

Collapse
 
hentaichan profile image
ヘンタイちゃん

I sometimes still do that, e.g. a logo that appears on a navbar is often unique, or the headers in section for a blog post (so that a user can link to specific parts rather than the whole document similar to what MSDN does) If you look at websites created by MS you'll notice that they also still use IDs for styling elements that are guaranteed to be unique.