5. How can it be changed?First of all, to be able to change an HTML document, we have to save it in our folder.Once saved we can modify it by opening it with the Text Editor.
Next we'll explain how to edit texts, how to create lists , how to create links and how to insert images.
5.1. TEXT-EDITING It's important to use common font families to make sure that all the servers, browsers and computers are able to identify them correctly. That's why it's better to use the families "Verdana, Arial, Helvetica". Like this, if a computer cannot identify the font "Verdana", it will use "Arial or Helvetica" in any case.5.1.1. TEXT FONT: Font text: Verdana Font size: 8 Font color: blue All the orders that define the definite font of a text: face, size, colour... can be in one tag with the name font at the beginning: <font face="verdana" size="8" color="blue" > CODE:
5.1.2. LINE BREAK: By editing texts what is essential are line breaks that are inserted with the tag <br>. It is a single tag that hasn't to be closed. This is because the webs adapt themselves to the width of the windows and make that the entire content is moved mixing itself up. Example for the use of a line break: To be or not to be. CODE:
5.1.3. BLANK SPACE: If you want to put in a blank space between words, images, tables or any kind of element, you'll have to do the following task. With the blank character key we're normally using when we're writing it's just possible to insert a blank space between words, for the rest of the elements it's not working like this and we have to use the following tag: side A side B CODE:
(In this example we put in five blank spaces to make it visible) 5.1.4. HEADER: header level 2header level 5CODE:
5.1.5. PARAGRAPH: first paragraph second paragraph CODE:
5.1.6. BOLD: bold CODE:
5.1.7. ITALIC: italic CODE:
5.1.8. UNDERLINED: underlined CODE:
5.2. LISTS 5.2.1. ORDERED LIST:
If you want to order the list with "abc" instead of "123" you'll have to add this to the tag <ol> : <ol type="a"> 5.2.2. UNORDERED LIST:
5.3. LINKS When you want to add a link you can do so in two different ways: 2. When you navigate inside of documents that are in your folder (for example your web page: web01.html), you'll have to give it its relative reference (folder system). This will be explained later. External navigation links To create a link to a web page the isn't in your folder (a web page you don't have), you'll have to fill in its URL adress (absolute reference): <a href="http://address URL.jpg" </a> 5.3.1. LINK TO A WEB PAGE: ETSAV CODE:
5.3.2. LINK TO AN E-MAIL ADDRESS: contact CODE:
Links for internal navigation If you want to create a link to an html document that you have saved in one of your folders on your computer, you're navigating internally and what you'll have to di is to hgive it the "internal address" of were to find the document (relative reference).To give the relative reference of a document, you have to follow this orders: a) if the document that you want to link is in the same folder than the html document you're working on, you only have to type in the name of this very document: <a href="name document html" </a> b) if the document is saved in a subfolder of the same folder, you have to write first the name of the subfolder, then a bar (/) and then the name of the document: <a href="name subfolder/name document html" </a> c) if the document is saved in a different folder then the one the html document you're working on is saved in, you have two write two points and a bar (../) as many times as folders and subfolders there are and at the end type in the name of the document: <a href="../name folder of the document/name document html" </a> 5.3.3. LOCAL LINK: Curs d'introducció a la construcció del portfoli CODE:
5.3.4. LINK TO A CERTAIN POINT OF A PAGE: The "anchoring with name" is used to create a table of contents at the beginning of a big document. Every chapter of the document gets an "anchoring with name", and there is a connection from each anchorage to the upper part of the document.
And from point 5.2. LISTS, at the title you have to write: CODE:
If you want that the link is opened in a new page, you have to add this order: target="new" between the brackets: To change the colour of the links you have to add the following orders to the tag <body>: for a normal link: link="blue" for a visited link: vlink="red" for active links (at the moment of clicking): alink="orange" Like this, <body link="blue" vlink="red" alink="orange">
5.4. IMAGES 5.4.1. INSERT IMAGES:CODE:
It's important to determine the size of the image to control that it's neither too big nor too small. You can do so by fixing the width or the height in the tag of the image, in this case we fix the width (pixels): width="300".
To border the image with a line around the outline of the image, use the attribute "border=1" (or higher). CODE:
You can also put a name above the image. This is made with the attribute "alt" and gives alternative information about an image if the user cannot see the image out of any reason (a slow connection, an error in the source attribute, or if the user is using a screen reader). CODE:
5.4.2. IMAGES - LINKS: If you want to convert an image into a link on another page: CODE:
(You can see here that the image was saved in the folder before and that, by opening the image, you give it his relative reference: <img src="bbhp.gif">)
|
More information about font types: Verdana Times New Roman Courier For further information about images: types, size, recommendations of use and hints to create interactive images and animated GIF's, go to: Images |