A place to put your words

Although this might not look the greatest, I would argue that adding a comments section to your website can continuously make your website better. This will let visitors to send their inputs directly to you whether it be criticism, inquiries, or to just say hey.

First , we have to define where the user can input. This is where the <form> tag comes into play. Using the form tag can be used for several different options for the user to input. Inside your form tag, you will use the action attribute to tell your code where to send the form-data when a form is submitted. So if you want the responses sent to you via email you will use the following code:

entry:<form method=”post” action=”mailto:email@something.com”>

</form>

Enter a title, such as “Comments Section” between the form tags to prompt a visitor to type in their feedback. Moreover, enter a <p> tag after the title to allow the text box to appear below this heading. To illustrate:

<form method=”post” action=”mailto:email@something.com”>

Comments Section <p>

</form>

Using <textarea> element will create the text box where a user views and enters their information:

<textarea name=”comments” id=”comments”>

</textarea>

Finally, we want to enter the code that displays a “Submit” button. An <input> element can vary in many ways, depending on the type attribute. An <input> element can be a checkbox, password, radio button, submit button, and more.

<input type=”submit” value=”Submit” />

 

Your full code should look like this:

<form method=”post” action=”mailto:email@something.com”>

Comments Section <p>

<textarea name=”comments” id=”comments”>

</textarea>

<input type=”submit” value=”Submit” />

</form>

 

screenshot:

 Image

Advertisements

About tukejake

Jake is a Mathematics Major at University of Pittsburgh with plans to become a teacher.
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s