Getting a DOM

Juan Carlo Soriano
Cell Theory
Published in
1 min readJan 6, 2018

Let’s give ‘Ava’ a body, or more precise, a skeleton. Let’s give her a DOM object. In addition, let’s give her a name officially (id) and a role.

<button id = 'ava' role = 'button'>Hello</button>

Let’s also give her a style.

<style>
#id {
width: 140px;
height: 50px;
font-size: 14px;
border: 2px solid #333;
color: #333;
}
</style>

Here’s a codepen for her: https://codepen.io/jcsoriano18/pen/MrOaaR

--

--