
HTML. Hypertext Markup Language. HTML is the programming language for writing web pages. Many web-sites are written using software packages such as Front Page and Dreamweaver. However programmers still need to be able to understand HTML and the more advanced Javascript. As a first attempt at web page writing it is a good exercise to learn a few basic commands in HTML. The text is written in Notepad, go to Start > Programs > Accessories > Notepad. After some code has been written you can instantly view in Internet Explorer or Netscape by saving the document as an html document. Run the html document to see the results, and make any necessary arrangements by clicking on View in the menu and selecting Source, the source code is displayed, (the original Notepad document). |
Note a Tag. It is the information stored within the arrow brackets i.e. <TAG>. <HTML> <BODY> Starting the
document: The
structure of a web page: <TITLE>
gives the web page a title, appears on the web browser's title bar. It is used
by search engines to find the page. Each page should have a different title. <BODY>
creates the body of the web page, it is the content of the page that actually
appears in the web browser. The entire content of the web page appears in the
Body. The Body will contain the text, images, links, multimedia, animation etc.
All the work you do will go into the Body. <H1>
creates the size of the text that comes next, H stands for Heading, and 1 stands
for the biggest size. Therefore the most important message or headline could be
written using this tag. Note: every time a tag is opened i.e. <H1> it always has to be closed i.e. </H1>, the forward slash is used to denote the closing of the tag.
|
You
will also have to include comments. A comment is another Tag. Try different Font sizes and styles, make two lines of text: <FONT
SIZE=5 COLOR="00ccff" FACE="Courier">
You
can make the text move by inserting <MARQUEE>text</MARQUEE> Give the background
some colour try yellow: |
GRAPHICS: To
place an image on your web page you will need to know the location of your image. IMG adds an image to the page, SRC specifies the uniform resource locator for the image. The size is set by WIDTH and HEIGHT. You can also add an image by referring to its website. An image could also be set as a background. |
LINKS: To place a link to an image in a piece of text: <A HREF="image.jpg"> image</A> A creates a hyperlink with HREF, or an anchor with a NAME attribute. A
link to a football site: Note: A hyperlink is underlined.
<A
HREF="BottomLine">This links
to the bottom of the page</A> A
Hyperlink to an e-mail address: A
graphical hyperlink:
|
Creating a Web Page: The HTML code has to be written using
Notepad (Start > All Programs > Accessories > Notepad).
To amend the code or add new code, click View > Source and the original Notepad code will appear for amending.
Continue to add and amend
code until the page you have written is satisfactory. You then need to add at
least one other page and link them together. |
A suggestion for what you need to Design. You will need to start with two sketches on paper of what you would like to produce. The
theme is the new mobile phone company, include logo, contact details, the persons
running it, and what it does on the first page, create a background colour, and
some images. Create some links to other web sites, create an e-mail link, create
a link to a second page, use an image as a link. Two new products are to be advertised
on the second page, and a link back to the first page. |
HTML a quick guide to TAGS.
<HTML>
An HTML document opens </HTML>
<FONT SIZE= , COLOR=
, FACE= ,> <I> Italic, <B>
Bold, <U> Underline Images: <IMG
SRC="image.jpg" WIDTH= Height= (If a border is
needed) BORDER= >
<A
HREF="image.jpg"> image</A>
Will place a link to an image in the text Anchor: Place
an anchor in the page: <A NAME="nameofthetext">
Welcome</A> E-mail: <A HREF="mailto: henry@bbc.co.uk">To e-mail Henry click here</A> Note: many TAGS do not need to be closed, those that do are shown with a </ >
|