Shatin Tsung Tsin Secondary School S.3 Computer and Technology Web Page Design by HTML Introduction to HTML

Similar documents
CSC 121 Computers and Scientific Thinking

recall: a Web page is a text document that contains additional formatting information in the HyperText Markup Language (HTML)

A Balanced Introduction to Computer Science, 3/E

A HTML document has two sections 1) HEAD section and 2) BODY section A HTML file is saved with.html or.htm extension

HTML Tags <A></A> <A HREF=" CNN </A> HREF

Html basics Course Outline

HTML Summary. All of the following are containers. Structure. Italics Bold. Line Break. Horizontal Rule. Non-break (hard) space.

THE ASIAN SCHOOL. Class-10. ch8. A. Check the Right Answer (1*9)

COMPUTER APPLICATIONS IN BUSINESS FYBMS SEM II

HTML What is HTML Hyper Text Markup Language is a computer based language used to create WebPages.

HTML Hints & Tips. HTML is short for HyperText Markup Language.

Certified HTML Designer VS-1027

HTML TAG SUMMARY HTML REFERENCE 18 TAG/ATTRIBUTE DESCRIPTION PAGE REFERENCES TAG/ATTRIBUTE DESCRIPTION PAGE REFERENCES MOST TAGS

Tables *Note: Nothing in Volcano!*

Class X Chapter 5 Know More About HTML

HTML BEGINNING TAGS. HTML Structure <html> <head> <title> </title> </head> <body> Web page content </body> </html>

Certified HTML5 Developer VS-1029

This booklet is knowledge of. a web page. of a web page find what you. you want to. SiteSell offers. Introduction

Hyper Text Markup Language HTML: A Tutorial

Web Page Creation Part I. CS27101 Introduction to Web Interface Design Prof. Angela Guercio

<! - - S T W i n g - - > Minicourses. HTML Basics. October 1, 2005 Armand O'Donnell Electrical Engineering '07

Advanced Web Programming C2. Basic Web Technologies

</HTML> </HEAD> </BODY> </TITLE> </I> </B> </U> </BLINK> </EM> </FONT> </FONT> </CENTER> </H1> </H2> </H3> </P> </BR> --!>

Working with HTML. must appear at the very beginning of your webpage. starts the first section of your page

Unit 5 Web Publishing Systems Page 1 of 13 Part 4 HTML Part 4

LESSON 3. Coding Tables Continued

CSC Web Programming. Introduction to HTML

11. HTML5 and Future Web Application

HTML OBJECTIVES WHAT IS HTML? BY FAITH BRENNER AN INTRODUCTION

As we design and build out our HTML pages, there are some basics that we may follow for each page, site, and application.

I-5 Internet Applications

Chapter 4 Notes. Creating Tables in a Website

HTML. Hypertext Markup Language. Code used to create web pages

Introduction to HTML. SSE 3200 Web-based Services. Michigan Technological University Nilufer Onder

CSC Web Technologies, Spring HTML Review

HTML & XHTML Tag Quick Reference

Creating Web Pages. Getting Started

What You Will Learn Today

Desire2Learn: HTML Basics

SYBMM ADVANCED COMPUTERS QUESTION BANK 2013

1. The basic building block of an HTML document is called a(n) a. tag. b. element. c. attribute. d. container. Answer: b Page 5

I. Crossword. II. Who am I? I am an attribute which specifies a position in the web page where the linked document is to be opened.

Web Design 101. What is HTML? HTML Tags. Web Browsers. <!DOCTYPE html> <html> <body> <h1>my First Heading</h1> <p>my first paragraph.

CSE 3. Marking Up with HTML. Comics Updates Shortcut(s)/Tip(s) of the Day Google Earth/Google Maps ssh Anti-Spyware

Basic HTML. Lecture 14. Robb T. Koether. Hampden-Sydney College. Wed, Feb 20, 2013

Basic HTML. Lecture 14. Robb T. Koether. Hampden-Sydney College. Wed, Feb 20, 2013

Using Dreamweaver 2 HTML

Unit Four (Hyper Text Markup Language) HTML. Lesson One Create Web Pages by Using HTML

A Brief Introduction to HTML

Introduction to HTML. Bin Li Assistant Professor Dept. of Electrical, Computer and Biomedical Engineering University of Rhode Island

5/17/2009. Marking Up with HTML. An HTML Web Page File. Tags for Bold, Italic, and underline. Structuring Documents

WTAD Text Editors for HTML. Text Editors: Kate HTML. (HyperText Markup Language)

Introduction to HTML

Basic HTML Lecture 14

WTAD. Unit -1 Introduction to HTML (HyperText Markup Language)

The City School. Prep Section. ICTech. 2 nd Term. PAF Chapter. Class 8. Worksheets for Intervention Classes

The City School. Prep Section. ICTech. 2 nd Term. PAF Chapter. Class 7. Worksheets for Intervention Classes

HTMLnotesS15.notebook. January 25, 2015

Indian Institute of Technology Kharagpur. HTML Part III. Prof. Indranil Sen Gupta Dept. of Computer Science & Engg. I.I.T.

Using Dreamweaver CS6

Introduction to Computer Science (I1100) Internet. Chapter 7

SECTION C GRADE 12 EXAMINATION GUIDELINES

ITL Public School Mid Term examination ( )

Website designing by HTML. Home page designing

UNIT II Dynamic HTML and web designing

Creating A Web Page. Computer Concepts I and II. Sue Norris

Summary 4/5. (contains info about the html)

EDITOR GUIDE. Button Functions:...2 Inserting Text...4 Inserting Pictures...4 Inserting Tables...8 Inserting Styles...9

Introduction to Computer Science (I1100) Internet. Chapter 7

Vernalis Date: A webpage displays a picture. What tag was used to display that picture? a. picture b. image c.

IMY 110 Theme 7 HTML Tables

Chapter 4: Marking Up With HTML: A Hypertext tmarkup Language Primer

Chapter 1 Getting Started with HTML 5 1. Chapter 2 Introduction to New Elements in HTML 5 21

The internet is a worldwide collection of networks that link millions of computers. These links allow the computers to share and send data.

(Refer Slide Time: 01:41) (Refer Slide Time: 01:42)

Marking Up with HTML. Tags for Bold, Italic, and underline. An HTML Web Page File. Chapter 4: Marking Up With HTML: A. Formatting with Tags:

Start by launching Mozilla To start making a web page, go to File -> New -> Composer Page

How to use the Dealer Car Search ebay posting tool. Overview. Creating your settings

MMGD0204 Web Application Technologies. Chapter 3 HTML - TEXT FORMATTING

Computer Programming. Dr. Deepak B Phatak Dr. Supratik Chakraborty Department of Computer Science and Engineering IIT Bombay

Part 1: HTML Language HyperText Make-up Language

APPENDIX THE TOOLBAR. File Functions

Chapter 4. Introduction to XHTML: Part 1

HTML Images - The <img> Tag and the Src Attribute

HYPERTEXT MARKUP LANGUAGE ( HTML )

All Creative Designs. Basic HTML for PC Tutorial Part 2 Using MS Notepad Revised Version May My First Web Page

INFS 2150 / 7150 Intro to Web Development / HTML Programming

SAMPLE PAPER I CLASS- X SUBJECT FOUNDATION OF IT. TIME : 3 HRS M.M - 90 NOTE: 1. All questions are compulsory. 2. Write neat and clean.

Lesson: 6 Database and DBMS an Introduction. Lesson: 7 HTML Advance and features. Types of Questions

By Ryan Stevenson. Guidebook #2 HTML

Tables & Lists. Organized Data. R. Scott Granneman. Jans Carton

HTML. Based mostly on

Islamic University of Gaza Faculty of Engineering Department of Computer Engineering ECOM Advanced Internet Technology Lab.

7300 Warden Avenue, Suite 503 Markham, Ontario Canada L3R 9Z6. Phone: Toll Free: Fax:

Solutions. 9. Which is the first version of HTML? a. HTML 1.0 b. HTML 5 c. HTML 2.0 d. HTML 3.0

WEB PAGE DESIGN. Structure

COMPUTER APPLICATIONS 10. HTML - Structural Tags SECTION-B

Markup Language SGML: Standard Generalized Markup Language. HyperText Markup Language (HTML) extensible Markup Language (XML) TeX LaTeX

Programmazione Web a.a. 2017/2018 HTML5

UNIT 2. Creating Web Pages with Links, Images, and Formatted Text

Transcription:

Shatin Tsung Tsin Secondary School S.3 Computer and Technology Web Page Design by HTML Introduction to HTML HTML (Hyper Text Markup Language) is the set of markup symbols (tags or codes) (e.g. <p>, <img>, <frame> etc) that format the text, define the layout of the page, presents images, makes clickable links, and decides what can be seen on the Web. Some tags come in pairs to indicate when a particular display effect is to begin and when it is to end. The closing tag is usually with the slash (/). HTML files are plain text files with extension of htm or html. They contain two things: plain text and HTML tags. An HTML document has two major parts: the head and the body. The head contains the document s title and similar information. The body is the major thing to be displayed. e.g. html document head body HTML tag <head> <title>my First Homepage</title> </head> <body> to my homepage </body> plain text Constructing a simple web page e.g.1 Open a notepad [! This is my first homepage.! Save the file as homepage1.htm in your folder. Double click it to open the file by internet explorer. e.g.2 Open a new file and type in! This is my first homepage.! Save the file as homepage2.htm in your folder. Double click it to open the file by internet explorer. You may find that the output of the files in e.g.1 and e.g.2 are the same. It is because there is no break line in html file like document file. In order to show break line in html file, we should add <p> or <br> at the end of the line. p.1/8

i.e.!<br> This is my first homepage.<br>!<br> Some simple HTML tags Tags Description Example Output <title> Show the title in the menu <title>my First bar. Usually used in <head> Homepage</title> <br> Starts a new line <br><br>hel lo <p> Starts a new line and adds <p><p> some additional vertical space between the lines <center> </center> Center the text <center></ce nter> <p align=center> </p> Align at center <p align=center> </p> <p align=left> </p> Align at left hand side <p align=left> </p> <p align=right> </p> Align at right hand side <p align=right> </p> <i> </i> Italic <i></i> <b> </b> Bold <b></b> <u> </u> Underline <u></u> <s> </s> Strikethrough <s></s> <sup> </sup> Superscript base<sup>index</sup> base index <sub> </sub> Subscript H<sub> 2</sub>O H 2 O <pre> </pre> Preformatted passage <pre> </pre> <h1> </h1> Header 1 <h1></h1> <h2> </h2> Header 2 <h2></h2> <h3></h3><h4></h4> Header3Header4 <h5></h5><h6></h6> Header5Header6 <h7></h7> Header7 <font color= > </font> Change font color <font color= red > STTSS</font> <font color= #00ff00> STTSS</font> <font color= #ff00ff> STTSS</font> note: <font color = # XX YY ZZ> 1 st two digits(xx): Red color, minimum value=00, maximum=ff 2 nd two digits(yy): Green color, minimum value=00, maximum=ff 3 rd two digits(zz): Blue color, minimum value=00, maximum=ff STTSS STTSS STTSS each digit s value is from 0 to f i.e. 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, a, b, c, d, e, f Red Yellow White Magenta Green Cyan Blue absolute font size <font size= > </font> Change font size <font size= 5 > </font> <font size = +3 > relative font size p.2/8

<font face= > </font> Change font type <font face= Impact > </font> <hr> Horizontal line <hr> <hr width=50> <hr width=50%> <hr size=10> <!-- --> Remark <!-- --> Ex.1 Use Notepad to write HTML tags so that the content will be displayed by a web browser as follows: title:my Homepage Header1 horizontal line Header2 bold italic underline Font size:5 Font color: red Font:Impact strikethrough Answer: Font size=5 Font color: red Font: Impact Strikethrough p.3/8

Order list and Unorder list Write down the output of the following HTML in a web browser. e.g.3 <ol> <li>english</li> <li>chinese</li> <li>mathematics</li> </ol> e.g.4 <ol type= A > <li>english</li> <li>chinese</li> <li>mathematics</li> </ol> Type parameter Description Output 1 Number type 1, 2, 3, a Small letter type a, b, c, A Capital letter type A, B, C, i Small Roman number type i, ii, iii, I Big Roman number type I, II, III, You may try this tag to show the order list starting from 6 <ol type= 1 start= 6 > e.g.5 <ul> <li>english</li> <li>chinese</li> <li>mathematics</li> </ul> e.g.6 <ul > <li type= square >English</li> <li type= circle >Chinese</li> <li type= disc >Mathematics</li> </ul> p.4/8

Insert Table Write down the output of the following HTML in a web browser. <table> <tr> <td>english</td> row1 row2 <td>chinese</td> <td>mathematics</td> </tr> <tr> <td>physics</td> <td>chemistry</td> <td>biology</td> </tr> 3 sets of data in each row 3 sets of data in each row 3 sets of data in 1 st row 3 sets of data in 2 nd row Other attribute settings of <Table> <table width=75% border=1> <tr> <td>1</td><td>2</td><td>3</td></tr> <tr> <td>4</td><td>5</td><td>6</td></tr> <table bordercolorlight=red bordercolordark=blue width=75% border=10> <tr> <td>1</td><td>2</td><td>3</td></tr> <tr> <td>4</td><td>5</td><td>6</td></tr> <table border=5 cellspacing=5 cellpadding=15> <tr> <td>1</td><td>2</td><td>3</td></tr> <tr> <td>4</td><td>5</td><td>6</td></tr> cellspacing: the width of lines in the table cellpadding: the space between the text and the border in the table <table border=1 width=75%> <tr> <td colspan = 2>1</td> <td>2</td></tr> <tr> <td>3</td><td>4</td><td>5</td></tr> <table border=1 width=75%> <tr> <td rowspan = 2>1</td> <td>2</td><td>3</td></tr> <tr> <td>4</td><td>5</td></tr> <table border=1 width=75% height=50% bordercolor=blue> <tr> <td rowspan = 2 valign=bottom bgcolor=yellow>1</td> <td align=center>2</td> <td align=center>3</td></tr> <tr> <td>4</td><td>5</td><td>6</td> </tr> p.5/8

Ex.2 Use Notepad to write HTML tags so that the content will be displayed by a web browser as follows: Answer: <center> <table border=1 width=75%> </center> Insert Image Tag & Attribute Description Example <body bgcolor=> Set the background color <body bgcolor=red> of the web page <body bgcolor=#00ffff> <body background=> Set the background <body background= sttss.jpg > image of the web page <img src=> Insert a image file <img src= logo.jpg > <img src= alt= > Show the name of the image when moving the mouse over the image <img src= logo.jpg alt= school logo > <img src= align=bottom> Set the position of the <img src= logo.jpg align=bottom> image at the bottom <img src= align=left> Set the position of the <img src= logo.jpg align=left> image at the left <img src= align=right> Set the position of the <img src= logo.jpg align=right> image at the right <img src= height=100> Set the height of the <img src= logo.jpg height=100> image <img src= width=200> Set the width of the image <img src= logo.jpg width=200> <table><tr><td><img src= ></td></tr> Insert an image in a table <table><tr><td><img src= logo.jpg > </td></tr> Other setting: <body bgcolor=ffff00 text=000000 link=ff0000 alink=00ff00 vlink=0000ff> text: text color, link: hyperlink color, alink: active hyperlink color, vlink: visited hyperlink color p.6/8

Set the Anchor and Hyperlink 1. Set a bookmark Using <a name = bookmark > </a> to set a bookmark in a web page 2. Go to a bookmark Using <a href = #bookmark > </a> to go to a bookmark in a web page 3. Go to a new page Using <a href = filename.htm > </a> to go to a new web page 4. Go to a web site Using <a href = http://websiteaddress > </a> to go to a web site 5. Send the e-mail Using <a href = mailto:emailaddress > </a> to launch a e-mail program to send the e-mail e.g.7 Type the following HTML code using a notepad and save the file as homepage2.htm in your folder. Double click it to open the file by internet explorer and test the hyperlinks in the web page. <head><title>my Second Homepage</title></head><body> <a name= menu >Menu</a> <ol type= I > <li><a href= #Chapter1 >Set a Bookmark</a></li> <li><a href= #Chapter2 >Go to a Bookmark</a></li> <li><a href= #Chapter3 >Go to a new page</a></li> <li><a href= #Chapter4 >Go to a web site</a></li> <li><a href= #Chapter5 >Send the e-mail</a></li></ol><p><p> Any problem? Send the e-mail to <a href= mailto:tts-tkf@hkedcity.net >me</a><p><hr> <a name= Chapter1 > <img src= ch1.jpg alt= chapter one height=400 width=500><a href = #menu ><p>back</a><p> <a name= Chapter2 > <img src= ch2.jpg alt= chapter two height=400 width=500><a href = #menu ><p>back</a><p> <a name= Chapter3 > <a href= homepage1.htm ><img src= ch3.jpg alt= chapter three height=400 width=500></a><a href = #menu ><p>back</a><p> <a name= Chapter4 > <a href= http://www.sttss.edu.hk ><img src= ch4.jpg alt= chapter four height=400 width=500></a><p><a href = #menu >back</a><p> <a name= Chapter5 > <a href= http://www.emb.gov.hk target=_blank><img src= ch5.jpg alt= chapter five height=400 width=500></a><p><a href = #menu >back</a><p> </body> p.7/8

Ex.3 Study the above web page in HTML codes and answer the following questions. (a) What is the title of the web page? (b) What is the output of order list in the web page from <ol type= I > to </ol> (c) How many bookmarks are there in the web page? What are their names? (d) What is the use of the attribute alt in the setting <img src= ch1.jpg alt= chapter one >? (e) In the web page, you may send the e-mail by clicking a word. What is the word to be clicked? What is the tag used in here to send the e-mail? (f) In the web page, you may visit the web site of EMB (www.emb.gov.hk) by clicking somewhere. Where should you click? (g) What is the different between the hyperlink settings in the image of Chapter3 and that of Chapter4? (h) What is the different between the hyperlink settings in the image of Chapter4 and that of Chapter5? What is the different of the outputs between them after clicking the hyperlinks? (i) By clicking the word back, what will be happened in the web page? p.8/8