McStormify Administrator Posts : 75 Tokens : 87
| Subject: HTML Lesson 1 :: The Basics Sat Oct 23, 2010 3:31 pm | |
| Basics of HTML
This tutorial is for absolute beginners. It is the easiest of HTML. To use HTML, you need either an online editor or a word editor like notepad. So here we go: In HTML (Hyper Mark-up Text Language), everything goes inside two tags. <html></html>. It would look like this on a webpage: - Code:
-
<html> </html> To add a heading, use another four tags. <head></head><title></title>. It would look like this on a webpage: - Code:
-
<html> <head> <title> TITLE GOES HERE </head> </title> </html> To get started on the actual body of the webpage, you need two more tags. <body></body>. It would look like this on a webpage. - Code:
-
<html> <head> <title> TITLE GOES HERE </title> </head> <body> </body> </html> Now you need to add headings to the body: <h1> is the biggest one, and <h6> is the smallest one. - Code:
-
<html> <head> <title> TITLE GOES HERE </title> </head> <body> <h1>This is the heading</h1> CONTENT GOES HERE </body> </html> And to add paragraphs, you need to know <p></p>. It would look like this: - Code:
-
<html> <head> <title> TITLE GOES HERE </title> </head> <body> <h1>This is the heading</h1> CONTENT GOES HERE <p>THIS IS A PARAGRAPH </p> </body> </html> To add a line break, use <hr>. - Code:
-
<html> <head> <title> TITLE GOES HERE </title> </head> <body> <h1>This is the heading</h1> CONTENT GOES HERE <p>THIS IS A PARAGRAPH </p> <hr> MORE TEXT HERE </body> </html> Thanks, McStormify
Note: This tutorial is copyrighted by Extreme Coding Forum. You are not allowed to publish it anywhere without written permission from the administrators. |
|
|
blade99 Forum Member Posts : 1 Tokens : 1
| Subject: Re: HTML Lesson 1 :: The Basics Fri Jan 07, 2011 5:15 pm | |
| |
|