Chapter 21 - Website Authoring
Chapter 21 - Website Authoring
authoring
CHAPTER 21
What is a
website?
What is a website?
• A website is a collection of web pages that are hosted to web server.
• Web Pages can include different objects such as text, sound, video and still
image.
• A standardized system for tagging text files to achieve font, colour, graphic,
and hyperlink effects on World Wide Web pages.
• HTML file are written using a simple text editor (Notepad) or web-
authoring package ( Macromedia Dreamweaver, Microsoft Visual Studio
or Expression Web).
What is CSS?
• Cascading StyleSheet (CSS)
<table border=“1”>
• Merge Cell
• Column merge colspan
<thead>
<tr>
</tr>
</thead>
Headers and footers in
tables
Footer
<tfoot>
<tr>
</tr>
</tfoot>
Cell padding & spacing
• The cell padding attribute places spacing around data within each
cell.
• The cell spacing attribute places space around each cell in the table.
Headers and footers in
tables
Body
<tbody>
<tr>
</tr>
</tbody>
Embedded CSS (inline CSS) in HTML
style=“property 1: value1;proterty2:value2”
Example :
• Resize a table
– High height:20px;
• Cell Padding
– Padding padding:25px;
• Border Spacing
– Border Spacing border-spacing:20px 10px;
(border-spacing: horizontal spacing vertical spacing)
Image, Video & Audio
• Image
– <img src=“turtle.jpg” alt=“Company logo”> (*not include close tag)
• Video
– <video controls>
– </video>
• Audio
– <audio controls>
– </audio>
Lists
Ordered Lists (Number Lists) Unordered Lists (Bulleted Lists)
– <ol type=“A / a / i / I/1”> – <ul style=“list-style-type :
– </ul>
Hyperlink
• Internal Link
target attritube
– <a href=“#Top”> Go to Top of the page </a>target=“_blank” (to open new
• Email
– <a href=“mailto:[email protected]?subject=IGCSE
%20Book&body=Add%20Body”> Contact Us </a>
Metadata
• Metadata means data about other data
• The metadata about the HTML document is not displayed in the browser
• Metatags are not displayed in the browser but hold important information that the browser
requires, such as specifying
– the character set, These functions tell browsers how to
– page description, display the page and they tell search
– keywords, engines about keywords, which helps
– author of the document, and them list the page in the results of
– the viewport settings. relevant searches
Metadata
• Meta attribute charset : To define the character set used by a web page,
we use the charset attribute.
• This specifies the type of characters (called the character encoding) that
are displayed.
Metadata
• Meta attribute - name : The name attribute is used to specify the four
other elements, these are: author, description, keywords and viewport.
• If you have a web page with several hyperlinks that require the same type
of action (same target window/tab or a new window/tab)
• you can make this the default setting for the page by using base tag in the
head section.
base
<base href=“” target=“”>
To specify
• the document base URL for the purposes of resolving relative URL
• the name of the default browsing context for the purposes of following
hyperlinks
Examples: 10 km/h
• https://www.w3schools.com/html/html_entities.asp
External Stylesheet
• Using styles in your web pages helps you to be consistent.
• Using styles is much quicker and easier than applying individual settings.
– Monospace is available.
Centimeter - cm
Example
Millimeter - mm 36pt = 0.5in / 1.3cm / 3pc / 36px
18pt = 0.25in / 0.7cm / 1.5pc / 18px
12pt = 0.17in / 0.4cm / 1pc / 12px
Font-Size (Relative Values)
em Relationship
1em = the current font size (default font size)
ex
2em = twice of the current font size
percentage (%)
1ex = half the height of the current font size (height of letter – x)
xx-small, x-small, 200% = force the font to be twice the size of current paragraph style
small
medium
• p {text-align: justify;}
T E X T C O LO R
h2 { font-weight: bold;
font-style: italic;
color: #00ff88;
}
Background Color & Image
background-color : #F39E0A;
background-image: url(“****.jpg”);
margin-right : 200px; (this property can force the contents away from
the image)
Classes with CSS
• In the stylesheet, you can define a class by using full stop or dot (.)
symbol.
background-color : #FF00EB;
border-collapse : collapse/separate;
border-width : 4px;
border-color : #FF0000;
Publish a website
• Every webpage and elements (images, audio, video and external css files) has been
stored in a single folder.
• Websites must be registered with your desired domain name to the sever.
• an FTP client
• login details to a web hosting server that includes the name of the FTP host
and the port used and the username and password for the FTP.
Test a website
F U N C T IO N AL T E S T IN G
3. Are all objects that are not 2. Do all links between pages work
supposed to be visible hidden as expected?
from the user? 3. Do all external hyperlinks open
4. Do all internal hyperlinks work? the correct web pages?
Test a website
U SER T EST IN G
2. Find a suitable test audience of between two and five users or potential
users.
3. Tell the users it is the website being tested not them, and that you value
their thoughts and opinions.
4. Ask the users to speak their thoughts as they work but do not respond.
Any
Question