Question: I want a button at the right corner of a div. It works fine normally, but upon adding the align="right" to the html, the button doesn't work anymore (although it does align to the right). 

```
<input id="exitbutton" align="right" style="width:15px" type="image" src="images/#"/>

```

Why does this happen?

Answer: 
Ideally `align="right"` is not the property of input tag if you are using HTML5. As you are already applying inline style, you can just apply `float:right` to align input button to the right.

```
<input id="exitbutton" style="width:15px; float:right" type="image" src="images/#"/>

```
For buttons instead of using inline attributes use text alignment in your css. And avoid giving style with attributes as much as you can. 

For form elements you should use float if you are not using flex. But keep it in mind you should clear floats in order to prevent visual errors