Contents for this page
Introduction
|
Why You Should Learn HTMLHTML (Hyper Text Markup Language) is the main stardard for web pages. Knowing HTML allows you to tweak your elearning documents so that it does what you want. Using a text editor, rather than a WYSIWYG (What You See Is What You Get) editor can be a slower process for beginners; however, once you become more experienced in working directly with the code, normally allows you to achiever better and faster results.While you do not have to hand code everything, every time, having the ability to hand code gives you the choice when needed. An HTML web page is a plain text document that are creaded with programs such as Mac's TextEdit or a PC's NotePad. You can also use text editors that provide more support for HTML. About.com has a good list of such text editors, for both the Mac and PC. You can use a word processor, such as MS Word, but you must save it as a text document, rather than a Word document. eLearning HTML TemplateThe first template is template.html. It looks similar to the other elearning files, such as salvage9.html except that when you open it, it only displayes five xs (xxxxx) in various parts of your web browser window.To view the code, open template.txt. If you use the search function, you will see that it has 5 sets of xs:
Replace the xxxs with you own words, save it, and then open it with your browser. This will get you familar with using the template. You will also need to save the CSS (Cascading Style Sheet) to the same directory. Go to the templates file and copy "styles2.css" to your directory. This file further refines the formating of the templates. See Cascading Style Sheets (CSS). Working With HTMLWhile there are numerous ways of reformating the text, we will review just a few of the more popular ones. If you want to learn more, see the Learning HTML and Web Design section on this page.HTML commands are placed between the less than and greater than symbols: < >, such as: the italic command, <i>text is in italic</i> will display text is in italic. Note that the backslash ends the command. <b>text is in bold</b> will display text is in bold Headings use h1, h2, h3, etc. Note that 1 is larger than 2 and 2 is larger than 3: <h1>largest heading</h1> will display: largest heading<h2>Next largest</h2> will display:Next largest<h3>Next largest</h3> will display:Next largest<h4>Next largest</h4> will display:Next largestUse some of these commands in your elearning template to get some practice.Opening the Salvage9. html TemplateIf you just want to view the code in any of the templates, open the file as you normally would with your browser, and then press the "View" button on the browser's main menu, and then select "view source" (words may vary slightly in different web browsers). Note that you can copy the contents and paste it into a plain text file.When you name and save the file, ensure it ends in "html", such as "salvage.html". If you want to download the files directly to your computer, go to the templates file section and copy the files from the web directory to your computer. Understanding the TemplatesThe table below shows the HTML code and comments for the salvage9.html file. You do not need to learn what every line means as you will normally only be changing the highlighted code.
Learning HTML and Web DesignA good source for learning HTML is HTML Code Tutorial or Introduction to HTML.Tools to help you with web design can be found at Web Design Dashboard. Cascading Style Sheets (CSS)The templates are linked to a Cascading Style Sheet (See CSS in the table above - about the fifth row down). A CSS allows you to reformat the style rules that tell the browser how to display text. CSS allows complete and total control over the style of a hypertext (html) documentYou can learn CSS at Learning CSS. To see some great designs (and their source code) go to Zen Garden. This is a great way to learn to code, view the design and the code at the same time. Note that with CSS you will have to have three windows open -- 1) the page or design itself, 2) the HTML source code, and 3) the CSS source code. By switching back and forth you can see the design, see the html creating the design, and view the CSS code that is controling the HTML code. |