HomePortalFAQSearchMemberlistUsergroupsRegisterLog in

Share | 
 

 XHTML for beginners

Go down 
AuthorMessage
Compu-Teck Inc.



Posts : 80
Join date : 2010-04-29
Age : 25

PostSubject: XHTML for beginners   Wed Aug 25, 2010 1:39 pm

Hello, all! It's me, CTI! I decided to be mean and beat ESS to the punch. What I will be doing here is the classic "Hello World!" exercise in XHTML/HTML (they are both basically the same, with a few minor differences). It looks a bit like this:
Code:
<html>
<head>
<title> Practice (or whatever else you want to call it) </title>
<body>
<p> Hello World! </p>
</body>
</html>

Now, I will explain how this works line-by-line:

-First, the tag <html> indicates the beginning of a web page.
-Next, the <head> tag is where you would place a <title> tag and/or a DOCTYPE.
-Next, the <title> tag is always used. It is what will appear in a tab or on the bar on top of your web browser(where the close button is). The </title> tag closes the title. Anything between these tags will be read as the name of the web page you are creating.
-Next, the <body> tag. This indicates what the user will actually see on the web page. Any code wrote in here will be executed (if it belongs. If not, then you will have an HTML bug! pale ).
-Next, the <p> tag indicates a paragraph of text or numbers. Anything placed in here will be transferred directly as text onto the web page. The </p> tag indicates the end of the paragraph.
-Next, the </body> tag indicates the end of the body.
-Finally, the </html> tag indicates that this is the end of the web page. Any code after this will be singularly be ignored (I think. I have never tried to put any code after the </html> tag.)

IMPORTANT: BEFORE YOU OPEN THE PROGRAM, SAVE IT AS "XXX.HTML!!! OTHERWISE, IT WON'T WORK!!!

Any questions, comments, concerns, or corrections can be posted. I won't get mad a corrections. I am only human, after all!


Last edited by Compu-Teck Inc. on Thu Aug 26, 2010 9:00 am; edited 1 time in total
Back to top Go down
View user profile
Excimer Sun Software

avatar

Posts : 152
Join date : 2010-05-07
Age : 25
Location : USA

PostSubject: Re: XHTML for beginners   Wed Aug 25, 2010 6:38 pm

Yes, CTI, you're correct. Processing of an HTML document does indeed stop at the </html> tag (as far as I am aware.).
Back to top Go down
View user profile
 
XHTML for beginners
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Compile Crazy :: Web Developing :: For Beginners-
Jump to: