Presentation is loading. Please wait.

Presentation is loading. Please wait.

Using Html Basics, Text and Links. Objectives  Develop a web page using HTML codes according to specifications and verify that it works prior to submitting.

Similar presentations


Presentation on theme: "Using Html Basics, Text and Links. Objectives  Develop a web page using HTML codes according to specifications and verify that it works prior to submitting."— Presentation transcript:

1 Using Html Basics, Text and Links

2 Objectives  Develop a web page using HTML codes according to specifications and verify that it works prior to submitting –Create different types of links  Interpret the meaning of html tags and attributes  Identify common html tags, the proper syntax, and their purpose –Recognize and create special characters –Explain the difference between tags and attributes

3 HTML  Not a programming language  Hypertext Markup Language – text based formatting system for the web  XHTML – latest version of HTML  Platform independent

4 HTML  Use a plain text editor to type your HTML text:  Save your HTML page  To see your page

5 Get ready  www.birdnest.org www.birdnest.org

6 HTML Tags  Start with a “ ”  Usually in pairs.  To view HTML tags: right click and “View Source” http://www.northwest.com/

7 File Structure  tags: identify your file as an HTML file. –They begin and end every HTML document  tags: indicate information about the document  tags: appear on browser title bar  - surround text

8 HTML Tags  Properly nest HTML tags

9 XHTML  To make your HTML document compatible with XHTML –Use the traditional version of –Extend the tag  Copy the and found at the bottom of page 17 into the top of your web page

10

11

12 Sample 3 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Traditional//EN" "DTD/xhtml-trasitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang=en" lang="en"> Your Title appears here What happens to extra lines?

13 Tips  Extra spaces –Use the Under_score or –Capital letters to separate words: UnderScore  Use spaces in the document <html xmlns="http://www.w3.org/1999/xhtml" xml:lang=en" lang="en"> Is interpreted the same as one line

14 The Initial HTML File in Internet Explorer the title you entered between the tags address box indicates the name and location of the HTML file page content will appear here You should occasionally view the formatted page with different Web browsers to check compatibility, verify that there are no syntax errors, or other problems.

15 HTML Syntax  Tags: control the appearance of the document content –the name of the HTML tag –attributes are –document content

16

17 Paragraph  Surrounded by the and tags.  A blank line is displayed before the text  Text is wrapped

18 Line Break   Moves text following this tag to the next line

19 Try this and see what happens <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang=“en" lang="en"> Look at this text This shows what happens using the big tag. This shows bold text versus strong text plus use of the line break Next lets look at the italics tag the emphasis tag the teletype tag and finally the small tag

20 Creating Heading Tags  Six levels of headings: through  is the largest.  Headings are displayed in a bold font.

21 Interpretation of the tag by Different Browsers This figure shows how three different browsers might interpret a line of HTML code.

22 Six Heading Levels This figure illustrates the general appearance of the six heading styles. Your browser might use slightly different fonts and sizes.

23 Special Characters  Start with and end with

24 What do these represent?  &  <  >  ©  &plusmin;  Table 3.1 page 27 in your book has a list

25 Math and Science Tags , superscript , subscript

26 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1 -transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> Using more tags Sometimes special symbols are needed. For example: © to remind you not to make illegal copies or perhaps to make a footnote 1 so you won't be accused of plagiarism. Try this and see if your page looks like the next slide

27

28 Meta tags  Information not defined by other tags and attributes  Special instructions for Web server

29 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1 -transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> Meta Tags The page should change in a few seconds Sample with meta tags highlighted

30 Hypertext Links  How do we create links like the ones in the assignment?

31 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1 -transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> Linking Examples Of course you can link to other web pages The W3C site that develops protocols. You can also link to send e-mail to the instructor: Click here This image was inserted just for effect. We will learn how to do this later. Also you can link to other places within the same page. Use this link to go to the top of the page. Click here

32 Hypertext Links  These links can point to: –another section –the same document –to a different document –to a different Web page –to a variety of other Web objects

33 Creating Hyperlinks  Use tags –Sometines called link tags when creating links  Default is underlined blue  href attribute, Hypertext Reference, indicates location to jump to.  click here to open a web site

34 Linking to Other Files  click here to open the page  click here to open a file in a different directory from your web page

35 Linking to e-mail adresses  click here to send e-mail to the instructor

36 Hypertext Links You can place hypertext links at the top of a web page to make it easier for the user to navigate to a particular section of the document instead of scrolling.

37 Anchor Tags Anchor Tags  The with the “name” attribute creates an anchor –Marks text or image so you can link to it –The id attribute is used with name  Anchored text is the destination of a link; it is not the text you click on

38 How an Anchor Works anchor hypertext links When the user clicks one of the hypertext links, the link will go directly to that section (anchor, which is the destination of the link) within the web page.

39 Displaying Linked Documents in a New Window  A Web page is displayed in the main browser window by default.  To open in a new browser window, use the <a href=“url >Hypertext

40 Exercise 1:What will this display? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1 -transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> Exercise 1 Can you determine how this will look? You should be able to follow the clicks Microsoft's home page Have you had enough of this today: H 2 O ?

41 Exercise 2: How would you write this using HTML?

42 Test 1 Comments  Objectives: 7.2 Recognize and identify components of the motherboard and their purpose 7.9 Identify the first computer programmer, first person to build a computer 7.10 Recall the history of the computers: before 1950, Internet, personal computers 9.1 Identify and apply the computer’s method of data representation 9.2 Add binary numbers 9.3 Distinguish between encoding schemes and numbering systems and their purpose 9.4 Determine the alphanumeric equivalent of an ASCII expression


Download ppt "Using Html Basics, Text and Links. Objectives  Develop a web page using HTML codes according to specifications and verify that it works prior to submitting."

Similar presentations


Ads by Google