[Solved] Inline Html Elements


<!DOCTYPE html>
<html>
<body>
   <div>Text Here
   <button id="button"  style="float: 'right'">Click Me!</button>
   </div>
</body>
</html>

The code above works. You’ve missed the ”.

Edited – added –

It does work when you apply other styles, for instance:

<html>
<body>
   <div style="color:blue;text-align:center; background-color:red">Text Here
   <h1 style="color:blue;text-align:center">This is a header</h1>
   <button id="button"  style="float: 'right'">Click Me!</button>
   </div>
</body>
</html>

What would you like to do exactly? Try explaining or maybe drawing, sketching somehow for us to help you.

3

solved Inline Html Elements