Skip to content
📝 字数:working on

Attribute Selectors

Estimated time to read: 1 minute

Concepts

The choice comes down to a clever linguistic pun, mathematical conventions of the time, and practical keyboard layouts.

  • [attr~=value]: contain, logic

  • [attr^=value]: start, regex, because visual metaphor, in eary proofreading and typography, ^ means insert something from here; in 1960s, Teletype Model 33

  • [attr$=value]: end; . In early programmer culture, there was a common slang association between "money" or "the dollar" and the concepts of "the bottom line," "the payoff," or "the end of the transaction."

    • When a company looks at its financial spreadsheet, the very last line at the bottom of the page shows the final net profit or loss. Because it is at the absolute bottom, people call it "the bottom line." It means the final result or the ultimate conclusion.

    • When you buy something, you look at items, talk to the cashier, and look at prices. But the very last step of the entire process is handing over the money. The cash/dollar is the final thing that concludes the deal.

评论