Adding an image to the page
The IMG tag allows us to include an image. In this example the image is in a sub-directory called “images” under the directory the web page is in. This is an empty tag, meaning that it does not have separate start and end tags. The SRC gives the image filename, in this case in a subdirectory called “images”. The ALT tag gives a description of the image and will be displayed as an alternative if the image fails to load for some reason. It is also useful for giving information to google image search and for text-only or speech-based browsers.
Filed under: Beginners, HTML, Tutorial
No comments »
Making a link open in a new browser window
This is a handy trick, the link opens a new browser window (or a new tab on most browsers nowadays, now that Infernal Exploder finally does tabbed browsing). The TARGET attribute tells it where to go.
Filed under: Beginners, HTML, Tutorial
No comments »
Linking pages to each other
The web is called the web because pages link to each other. Make links clear and obvious in your page. Here’s how to make a link:
Filed under: Beginners, HTML, Tutorial
No comments »
A quick explanation of Entities (HTML encoding)
The clever ones among you might be asking “So if < and > mark tags then how do you put those symbols in a page?”. The answer is that certain symbols are encoded. Here are some common ones:
< gives < (“lt” stands for less than)
> gives > (“gt” stands for greater than)
© will give a copyright mark (©)
(more…)
Filed under: Beginners, HTML, Tutorial
No comments »
Example 2 – a more complex page using more HTML tags
<html>
<head>
<title>The Hello World Page v2</title>
</head>
(more…)
Filed under: Beginners, HTML, Tutorial
No comments »
Example 1 – a simple HTML webpage
I’ll drop you straight into the web design with an example. Create a text file and copy the code below. Save it as “index.html” on your computer somewhere. Now double click it to open it in your default web browser.
Filed under: Beginners, HTML, Tutorial
No comments »
What is a website?
Good question. A website is made up of a bunch of files on a web server. A server is a computer which isn’t used by one person like your desktop PC but does things for lots of people, hence a web server dishes out web pages and images.
(more…)
Filed under: Beginners
No comments »