DEV Community

Raja B
Raja B

Posted on

Html and css learn pharma

CSS, opacity: 0.9;

  • opacity: 0.9; = 90% visible (10% transparent/see-through)

  • The element is mostly solid but slightly transparent

mdash:

— is the HTML entity code for an em dash (—), which is a long dash used in punctuation.

Key facts:

What it displays as: — (a long dash, width of capital "M")

Name: Em dash (also called "mdash")

Length: Longer than an en dash (–) and hyphen (-)

Purpose: Marks a strong break in a sentence, sets off extra information like parentheses, or replaces a colon/semicolon

When you see the code itself: If — appears literally on a webpage, the HTML wasn't written correctly (often missing the semicolon ; at the end)

Top comments (0)