Code skill How to build a button

This piece of code shows you how you can use the <input> tag, the type attribute and the value attribute to create a button and a text box. You need to set the type attribute to the kind of HTML element you want, like a text box or a button. You then have to set the value attribute to the text you want to appear inside your HTML element. You can use CSS to change the colour of your button. At the moment your button and text box will appear in your web page, but won’t do anything when they are clicked.

See the Pen M3 CS How to build a button by Walker Books UK (@walkerbooks) on CodePen.