HTML TUTORIAL
What is an HTML File?
* HTML stands for Hyper Text Markup Language
* An HTML file must have an htm or html file extension
* An HTML file can be created using a simple text editor
* An HTML file is a text file containing small markup tags
* The markup tags tell the Web browser how to display the page
I recommend UltraEdit to use as you text-editor.
Click to download UltraEdit now!
You can also use notepad as your texteditor. Update : I have started to use EditPad Pro since it is
totally free.
Type in the following text:
<html>
<head>
<title>Title of my webpage</title>
</head>
<body>
Look ! My first website. <strong>Some bold text.</strong>
</body>
</html>
|
Save the file as "index.html".
You should know that HTML code almost always uses beginning and ending tags.
These tags surround the text that will be affected by the code.
Example:
The HTML element starts with a start tag:
The content of the HTML element is: Some bold text.
The HTML element ends with an end tag:
We also have different sizes of headlines :
<h1>This is a heading</h1> This is a heading
<h2>This is a heading</h2> This is a heading
<h4>This is a heading</h4> This is a heading
<h6>This is a heading</h6> This is a heading
|
Other html tags examples :
Underline: <u> Closing tag is </u>
Italics: <i> Closing tag is </i>
Centering text: <center> Closing tag is </center>
Change text color: <font color="red"> The ending for any font tag is </font>
Left aligning text: <p align="left"> Just use </p> for the closing tag
Right aligning text: <p align="right"> Just use </p> for the closing tag
|
more