This forum is now read-only. Please use our new forums! Go to forums

0 points
Submitted by soundingjet
about 11 years

Does "em" stand for something?

These HTML lessons have been great about putting a name with a shortened code word (href is hyperlink reference…src is source…etc). Knowing the relationship between what you type in the code and it’s real meaning helps my understanding.

Does “em” stand for something?? This is the em used instead of px when defining the size of text.

Answer 510c0d0d583739e026001f0f

1 vote

Permalink

An em is equivalent to the width of a letter m. Ems allow you to change the size of text relative to the size of the text in the parent element.

for instance, if the font-size of the document is 12pt, 1em is equal to 12pt. Ems are scalable in nature, so 2em would equal 24pt, .5em would equal 6pt, etc. Ems are becoming increasingly popular in web documents due to scalability and their mobile-device-friendly nature.

points
Submitted by Stephen McGeachy
about 11 years

1 comments

Sangeeth Sudheer about 11 years

Its an old definition. Its deprecated now and nowadays, the size of M is less than the one traditionally applied. It is normally taken roughly as 16 pixels size. i.e, 1 em = 16 px

Answer 50fcb0d3297af1bbbf00377a

0 votes

Permalink

points
Submitted by Roy
about 11 years

Answer 51473dd1383ff8bec000002b

0 votes

Permalink

Eric, I must congratulate you again, this exercise is great.

points
Submitted by Alberto Pazuello
about 11 years