Monday, 20 January 2014

Html coding lesson #2

The first thing i am going to show you in this lesson is how to make a suggestion part or email subscription part for your website, to do that you need to know how to make this suggestion or subscription be sent to your email, how to make a textbox for this, how to start and end the action of doing these and how to make a button.

Now to start off the suggestion part or email subscription bar you need to put this
<form action="MAILTO:someone@example.com" method="post" enctype="text/plain">

Except exchange the someone@example.com to your email and also you need to end it with a <form> after you put in the text boxes and buttons.

Now for what will go under this,say you want them to put there name and email since its an email subscription well, you just need to say what will appear above the text box first and follow it with a break or <br> then under input the type as text and the name as whatever the textbox is called then the value what will appear inside it before they type. Here is an example:

Name:<br>
<input type="text" name="name" value="your name"><br>
E-mail:<br>
<input type="text" name="mail" value="your email"><br>

Also since blogger allows you to edit the html in a post i will show you what this will actually look like in the html so you can see how it will appear on your screen

Name:

E-mail:


But now you need a button which is simple to add all you need to do it input the type as the button name (submit or reset) then the value as what the button will be called heres an example of a send button to put after the subscription part:

<input type="submit" value="Send">



Now if you put all those things together it will look like this (dont fill out the form i didnt out in my real email i left it as the example look on the right sidebar if you want to message me)

Name:

E-mail:


Now i will show you how to make a hyperlink, just simply type the following except replace the URL with the URL you want to link to and the bulldoghacks part following that with what you want the hyperlink to say:
<a href="http://bulldoghacks.blogspot.com.au">Bulldoghacks</a> 

This is all for this lesson ill link the next lesson here when its posted in a day or two and it will most likely be a much longer lesson since i will go into more detailed html coding information.