Lec8-Website Design
Lec8-Website Design
CC111
Introduction to Computers
Lecture 8
Website Design
Objectives
• What is HTML?
• How to create and View an HTML
document?
• Basic HTML Document Format
• The HTML Basic tags
• Case insensitive
• Spacing:
Browsers ignore extra spaces
<p>
Wide open
Wide open spaces!
spaces!
</p>
• Block-level tags include automatic line breaks
– Examples: P, H1, UL, TABLE
<form action="/action_page.php">
Name: <input type="text" name="fullname"><br>
Email: <input type="text" name="email"><br>
<input type="submit" value="Submit">
</form>
</body>
</html>
Title of the
Document
<BODY>
</BODY>
New
Paragraph
• Go to next line
<h2>Customer feedback</h2>
<p> Our loyal customers love us</p>
<hr />
<h2>Reviews</h2>
<p>Even those stuffy restaurant critics can't resist our charms</p>
<ul>
<li> First item in the unordered list
</li>
<li> Second item in the unordered list
</li>
</ul>
<ol>
<li> First item </li>
<li> Second item </li>
</ol>
Font type
Font size Color
Value of n 1 2 3 4 5 6 7
Size in pt. 8 10 12 14 18 24 36
• Within a document
• To a separate document
<A HREF=“mailto:[email protected]”>
Say HELLO!!!</A>
Click on hypertext “Say HELLO!!!” will invoke an application
such as MS Outlook to send E-mail to the address
[email protected].
<a
href="mailto:[email protected]?subject=Feedback"
>Feedback</a>
<IMG SRC=“image_URL”>
SRC – source of the image (file address)
Another attributes:
• BORDER=n, n-thickness of the border in pixels
• ALT – alternative text
• WIDTH – width of an image in pixels
• HEIGHT – height of an image in pixels
• ALIGN – position on a page
<IMG SRC=“images/pic1.bmp” WIDTH=30
HEIGHT=30 ALT=“Digimon”
ALIGN=“left” >