Wednesday 7 September 2011

HTML classes (Class No. 1)

Hello Friends, I am Ramzy Virani. I am a learning developer. I am using the word “learning”, because there is lot more to learn for me.

I am going to start a course for people who are interested in website development. I use PHP to develop websites. First of all you will need a basic knowledge of HTML to learn PHP because if you don’t know HTML you cant understand PHP language. That’s why I am giving you a short demo of HTML.

HTML Course

HTML stands for “Hyper Text Markup Language”. Mr. Tim Berners-Lee invented HTML.


Requirements.

  • A normal text editor (e.g. Notepad, WordPad, M.s Word).
  • A web browser. (e.g. Firefox, I.E., Chrome, Safari).


HTML TAGS.
HTML tags are consist of 3 items.

  1. HTML tags are keywords surrounded by angle brackets like <html>.
  2. HTML tags normally come in pairs like <b> and </b>.
  3. The first tag in a pair is the Start tag, the second tag is the End tag.


Start and End tags are also called Opening tags and Closing tags. Following  are some examples of HTML tags  to explain.
<html>
<head>
<title>
<body>.

Now we will create a basic page to learn how HTML works. (Have a look on the attachments. It will explain more easily.)

Step 1. First open your text editor. (I’ll use Notepad).



Step 2. Copy the code written below and paste it on your text editor.

<html>
<body>

<h1>My First Web Page.</h1>

</body>
</html>



Step 3. Save it as “demo.html”.




Step 4. Open it with your web browser, By double clicking on it. (I’ll use firefox).


Now I'am going to explain how our code works.

The "<html></html>" tags explains the system that inside these tags are an HTML webpage.

The "<body></body>" tags explains the system that this is the body of the HTML webpage.

The "<h1></h1>" tags explains the system that inside these tags there is a heading and It should be printed like a heading. (it means bigger and bold text.)

The "My first web page." is the text to be treated as a heading.

Okay bye for now. We will continue this course in next class.
Regards,
Ramzy Virani.