Hi everyone, I'm very new to creating my own websites and I want to start out simple. I would like to create a very basic website that contains a static text box, an output text box and a button. No bells, no whistles, not even any colors.
The function of the button would be to produce a random sentence (taken from a list I have) and then display it in the Output text box. Please see the attached image for a visual depiction. How do I go about doing this? Any help would be much appreciated.
Thanks for the help in advance!
Hi lucozade33. Welcome to SitePoint.
The steps (I would take)
HTML- learn about html forms and you will probably use "<textarea>" for the two text boxes. (HTML Forms and Input)
User clicks "submit" button.
Some form of code (Javscript, PHP, etc.) puts a random sentence into the output text boxes' "value" attribute.
Let me know if this helps/ Is confusing!
This topic is now closed. New replies are no longer allowed.