Presentation is loading. Please wait.

Presentation is loading. Please wait.

Introduction to Web Design XHTML. The Basics Elements and Tags are the basics of any webpage.

Similar presentations


Presentation on theme: "Introduction to Web Design XHTML. The Basics Elements and Tags are the basics of any webpage."— Presentation transcript:

1 Introduction to Web Design XHTML

2 The Basics Elements and Tags are the basics of any webpage.

3 Elements Elements are made up of two tags; a start tag and an end tag. Between these tags is the element content. Welcome to My World

4 Start Tags A start tag is a left angle bracket followed by the name of the element and then a right angle bracket.

5 End Tags End tags are a left angle bracket and a slash followed by the name of the element and then a right angle bracket. The slash allows the computer to distinguish the end tag from the start tag. Tags are case sensitive – use lower case letters only.

6 Empty Elements Certain elements are empty and are designated by a slash before the right angle bracket in the start tag. The element is used to insert a line break into the document. This tells the computer to stop the text at that point and start a new line. As you may have guessed the element does not have any content so it does not need an end tag.

7 Content Most elements will contain multiple elements. This may sound confusing but it is really very simple. An element that contains another element looks like this: The document title

8 Nesting Nesting means the way in which elements contain elements. When we say that elements are properly nested we mean that each element is completely contained within the elements that contain it, and it completely contains the elements it contains.

9 Nesting, continued Peeps is a fantastic story. ^ That is perfect XHTML Peeps is a fantastic story. ^ That is not! Can you spot the error? The starts outside the but finishes inside it. The tags are not properly nested.

10 Required Elements There are four elements that all XHTML documents must contain. They must have a and they must contain a. They also must have and elements.

11 The element contains the whole document. It starts first and finishes last. It tells the computer that this is an document and must always be present.

12 The contains elements that are about the document rather than elements that are displayed in the page itself and includes things like the document title.

13 The document you must have a which describes what the document is. Without a the document is not valid.

14 A last, but certainly not least, the document must have a. The is the Webpage itself. It comes after the and is the only other element that can go in your element. Anything that you want to put in your page goes in here.

15 Put It All Together yada yada yada

16 The End This is in fact not really the end, but it is the end of the basics. We have seen that there are rules to be followed when writing your XHTML documents, and we've looked at the basic building blocks of XHTML. As long as you follow these rules, you are on your way to creating XHTML web pages.


Download ppt "Introduction to Web Design XHTML. The Basics Elements and Tags are the basics of any webpage."

Similar presentations


Ads by Google