New tutorials View all
Encapsulation in PHP
Abstract classes in PHP
An introduction to MySQL databases in PHP
Creating a user login and registration system.
First Lesson of HTML
New forum replies
Jim in errorsPaul in errorsJim in Im Stuck On The Member System Tut...scott33 in Im Stuck On The Member System...Jim in Test topicCodefreek in My IRC Bot,Jim in 2.1, likes and dislikes
New frontpage replies
tutorials: Creating an IRC bot in PHPtutorials: Creating an IRC bot in PHPtutorials: Creating an IRC bot in PHPtutorials: Creating an IRC bot in PHPtutorials: Creating an IRC bot in PHP
New articles
New news
First Lesson of HTML (62 views)
HTML, or Hyper Text Markup Language is the base language of your website. Making a website without a perfect HTML knowledge is not done.
The abbrevation HTML means Hyper Text Mark-up Language. HTML is used to build Internet pages with code. You type HTML code in block note or in notepad. There are also HTML editors but that we discus later in the future. The basic of HTML code is ( I am using Notepad++ because it works with colours so you have a better overview ):
The code exists of an element and a symbol. You put those 2 between the < and > signs.
If you want to close a code you must use the / sign. That says to the browser that it has to shut of the code.
You can see that a basic HTML page exist out of a HEAD / TITLE / BODY. In the HEAD you set the JavaScript and CSS code, but we handle that later. In the TITLE you put the TITLE of the page and you will see it at the top of the browser. And in the BODY you put text and pictures. With the HTML code you open and shut down the page.
A view disadvantaged are: if you don't close the element the browser will do nothing.
You must close the element!.
If you have finished your first page you can save it as test.html or test.htm. Test.html is more used because it's the standard. So if you have saved the HTML file you can open it with Internet Explorer / Mozilla Firefox or other web browsers.
So you can see is this an standard text. But you can change the text with other elements.
Example: you can underline your text or you can make your text bold and you can make your text cursive. The elements are: for underline , to make text bold , to make your text italic . You must but the elements between the elements, or else they don't work.
This is to make your text underlined:
This is to make your text bold:
This is you make your text italic:
This was the first lesson of standard HTML. If you have questions please ask then on the forum.
Written by Jasper van Galen
| php | |
|
1 2 3 4 5 6 |
<html> <head> <title>Test page</title> </head> <body>Here is the text </body> </html> |
The code exists of an element and a symbol. You put those 2 between the < and > signs.
If you want to close a code you must use the / sign. That says to the browser that it has to shut of the code.
You can see that a basic HTML page exist out of a HEAD / TITLE / BODY. In the HEAD you set the JavaScript and CSS code, but we handle that later. In the TITLE you put the TITLE of the page and you will see it at the top of the browser. And in the BODY you put text and pictures. With the HTML code you open and shut down the page.
A view disadvantaged are: if you don't close the element the browser will do nothing.
You must close the element!.
If you have finished your first page you can save it as test.html or test.htm. Test.html is more used because it's the standard. So if you have saved the HTML file you can open it with Internet Explorer / Mozilla Firefox or other web browsers.
So you can see is this an standard text. But you can change the text with other elements.
Example: you can underline your text or you can make your text bold and you can make your text cursive. The elements are: for underline , to make text bold , to make your text italic . You must but the elements between the elements, or else they don't work.
This is to make your text underlined:
| php | |
|
1 2 3 4 5 6 |
<HTML> <HEAD> <TITLE>Test page</TITLE> </HEAD> <BODY><U> Here is the text </U></BODY> </HTML> |
This is to make your text bold:
| php | |
|
1 2 3 4 5 6 |
<HTML> <HEAD> <TITLE>Test page</TITLE> </HEAD> <BODY><B> Here is the text </B></BODY> </HTML> |
This is you make your text italic:
| php | |
|
1 2 3 4 5 6 |
<HTML> <HEAD> <TITLE>Test page</TITLE> </HEAD> <BODY><I> Here is the text </I></BODY> </HTML> |
This was the first lesson of standard HTML. If you have questions please ask then on the forum.
Written by Jasper van Galen
Replies on First Lesson of HTML:
Jump to comment page: 1
There are no replies for this tutorial. Are you going to be the first?
Jump to comment page: 1
You are not logged in. Please login or register an account, it just takes 30 seconds.
