We usually get the width width
of a div
or any other tag within the page.
How can you get the width of a plain text? For example:
Um texto
How do I know the width of this text in the JavaScript page?
It is not the size of the string, it is the width in pixels.