I wonder how can I get the memory capacity that a html element takes?

lets say that i have the next script...

```html
<body>
    <div id="id" class="class">some words</div>
    <textarea col="60" row="10"></textarea>
</body>
```

I want to find out in bytes or kb how much storage takes the textarea with users content and without?!?

In addition i want to find out how many kb or bytes the element itself takes?

Lets say that the div takes 0.0024kb as an element and + id + class + value takes 0.0154kb

Is there a way for me to find that out?

Thank you :)