AdvertisementYour brand could be hereYour brand hereOn every Darslab page · students, parents and teachersinfo@darslab.comAsk for pricesPricesinfo@darslab.com
☰ Year plan · Communication Technology

Links, visual editors and the header page

Week 9 · Unit 3 Creating Site Pages (2), Topic 1 (continued): linking pages, typing code or using a visual page editor, the header page with banner and menu · 3 lessons
2

Typing code or using a visual editor

ICT Secondary 2 Term 1, Unit 3, Topic 1: pp. 69–77
GoalCompare typing HTML with using a visual page editor, and explain why the code is still the same.
New words
visual editor · a program in which you build a page by dragging and formatting, and it writes the HTML for youWYSIWYG · “what you see is what you get”: the editing view looks like the finished pagecode view · the view of a visual editor that shows the HTML underneathgenerated code · HTML written by a program, not typed by you
Explanation

There are two ways to make a page. You can type the HTML yourself in a plain text editor, or use a visual page editor. A visual editor follows the WYSIWYG idea, “what you see is what you get”: you drag a picture, format a word, and the screen looks like the finished page. Underneath, the editor writes ordinary HTML, and it can show you that code in a code view. So the final result is the same kind of file, whichever way you worked. Which is better? A visual editor is quick for layout, but it may add code you did not choose and you may not understand it. Typing gives you full control and teaches you what each tag does, but it is slower. A good builder can do both and reads the generated code to check it. Here we only explain the idea; the steps depend on the program.

Typing the codeVisual editor
Speed for layoutslowerfaster
Control of every tagfullless
Learning what tags dovery goodneeds the code view
Risktyping mistakescode you did not choose
Worked examples
Html
1<p>The <strong>router</strong> passes data.</p>
Output
The paragraph shows The router passes data. with the word router in bold.
In a visual editor, Youssef selects the word router and presses the bold button. The editor writes the code below. The visitor sees the word in bold. If Youssef types the same code by hand, he gets the same page.
JobBetter wayWhy
quick draft of the layoutvisual editoryou see the result at once
fix one wrong linktypingone word to change
learn what a button doescode viewshows the real HTML
Mona picks the better way for each job. A quick draft of the banner layout suits the visual editor. Fixing one wrong link suits typing, because it is one word. Learning what is behind a button suits the code view.
Class activity

Write one paragraph (five sentences) saying which way you would use to build the club site’s first draft and which way to fix a small mistake later. Mention the code view and say why you must still read the generated code.

Practice
1
What does WYSIWYG mean?
2
What does a visual editor write underneath?
3
Give one advantage and one risk of a visual editor.
4
Why is the code view useful for a learner?