Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML

John Levy
John Levy
1,451 Points

Trouble editing a sign up form

I have found a sign up form and I want to edit part of it. The problem is I dont know where the text is to edit. I want to edit the SUBMIT QUERY text at the bottom of the form. I have attached my code below. Where is this text so I can edit it? http://codepen.io/Johned22/pen/gLxPbb

Thanks in advance

2 Answers

andren
andren
28,558 Points

The submit input element has a default text value that is determined by the browser that renders it. So different browser will display the text on the button differently. To override the default text you can add a value attribute to the input, whatever you set the value to will be set as the button text.

So basically change the last input on your page to something like this:

<input type="submit" class="frm-ctrl btn" value="Example Text"/>

And you will have a submit button labeled "Example Text".

John Levy
John Levy
1,451 Points

Thanks, that solved my problem