Html2 Intro

19
08/26/22 HTML How to make a simple web page

description

 

Transcript of Html2 Intro

Page 1: Html2 Intro

04/08/23

HTMLHow to make a simple web page

Page 2: Html2 Intro

04/08/23

The Basics What is HTML

Page 3: Html2 Intro

04/08/23

HTML files are usually typed in Notepad

Files are saved using the extension name: .html or .htm

Page 4: Html2 Intro

04/08/23

HTML format for a web page

–should always follow the structure:

Page 5: Html2 Intro

04/08/23

Cont…

<html>

<head>

<title>

</title>

</head

<body>

</body>

</html>

Page 6: Html2 Intro

04/08/23

Where:– <html> - opening tag– <head> - heading– <title> - title of the page – <body> - start of the actual page

Page 7: Html2 Intro

04/08/23

Cont...

All tags have opening and closing tags

Closing tags are identified with the / symbolex.

<font face=“Comic Sans” This is Comic Sans </font>

Page 8: Html2 Intro

04/08/23

Cont...

Will appear as:

This is Comic Sans.

Page 9: Html2 Intro

04/08/23

Other basic tags

Font Marquee OL UL Img src A href Table

Page 10: Html2 Intro

04/08/23

Some tags have their own attributes

- attributes i.e. properties

Example:

<font face=arial color=blue size=+3>

Page 11: Html2 Intro

04/08/23

Where face, size and color are the attributes of the Font tag

Page 12: Html2 Intro

04/08/23

Experiment!

Try creating a simple web page

Do this by opening Notepad

Page 13: Html2 Intro

04/08/23

<html>

<head> Sample page </head>

<title> Your name Page </title>

<body> <p>

This is a sample page

</body> </html>

Page 14: Html2 Intro

04/08/23

Some tips

Plan your webpage– make an outline

Gather all needed materials– Ready all the documents, pics, sound

files and other objects Make sure that the pages will be

reader-friendly

Page 15: Html2 Intro

04/08/23

…tips

– Background vs. foreground colors– Font size and style

Consider your target audience

Page 16: Html2 Intro

04/08/23

Cont...

So now it is actually just a matter of putting your html tags together with the text contents of your planned web page…!

Page 17: Html2 Intro

04/08/23

HTML Sample

Try this…

Page 18: Html2 Intro

04/08/23

Try to combine the following tags:

<html>

<head> Welcome to this trial page

<title> Trial Page _lastname</title></head>

<body>

<hr>

<font face=Arial color=blue size=+3>

This is just a trial. </font>

</font>

</body> </html>

Page 19: Html2 Intro

04/08/23

After typing the tags, save the file as:

Trial1_lastname.html

View the saved file by opening it thru the Internet Explorer