[HTML] A Brief Introduction to HTML

Using this board you can create tutorials for any subject you wish. Be it photoshop, flash, coding, cooking, obscure sexual practices, etc.

[HTML] A Brief Introduction to HTML

Postby WeTPaiNT on Mon Mar 30, 2009 10:06 pm

A Brief Introduction to HTML

Section 1: Starting an HTML Document

Code: Select all
<!DOCTYPE>


All HTML documents begin with a <!DOCTYPE> tag. The <!doctype> tag lets the browser know what version of HTML the document is written in. We'll be writing our page in XHTML 1.0 Transitional. Go ahead and open up a text editor.

The doctype for XHTML 1.0 Transitional is:

Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


Put this at the very top of your document.

Next is the <html> tag. It defines the start of the HTML document. Every tag needs a start and end so add the following to your document below the <!doctype>.

Code: Select all
<html>
</html>


So far your document should look like this:

Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
</html>


Section 2: The <head> Tag

Next up is the <head> and <title> tags.

The <head> tag is used to house certain elements. It can contain the <base>, <link>, <meta>, <script>, <style>, and <title>.

The <title> tag defines the title of the web page. This will display at the top of the browser.

Lets give our document a title. Add the following to your document inside the <html> tags:

Code: Select all
<head>
<title>My First Website</title>
</head>


You should now have the following:
Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>My First Website</title>
</head>
</html>


Section 3: The <body> Tag

Now its time for the <body> tag. The <body> tag is where all the content in the document is written. The body tag goes below the <head> tags, inside the <html> tags.

Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>My First Website</title>
</head>
<body>
</body>
</html>


Now lets add some content. Add the following inside the <body> tags:

Code: Select all
<p>Hello World!</p>


The <p> tag defines a paragraph.

You should have the following:

Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>My First Website</title>
</head>
<body>
<p>Hello World!</p>
</body>
</html>


Save your document. When you save it make sure to save it as .html. Naming it index.html would do fine. Open your HTML file in a browser. Congratulations, you just created your first web page.

Next Lesson: A Brief Introduction to CSS and Stylesheets.
Image
User avatar
WeTPaiNT
Inquisitor
Inquisitor
 
Posts: 666
Joined: Tue Aug 05, 2008 5:08 pm
Location: Brooklyn, NY, USA

Re: [HTML] A Brief Introduction to HTML

Postby Sniffychimp on Mon Mar 30, 2009 10:30 pm

Here's a tutorial idea: How to Convince Ethan to Make Your Website
DrunkCat wrote:The Jezism community, teaching that with great intelligence, comes great pedophilia.

Image
Image
User avatar
Sniffychimp
Interstellar Explorer
Interstellar Explorer
 
Posts: 4480
Joined: Mon Jul 28, 2008 12:35 am
Location: Seattle, Washington, USA, The World, The Universe, A Snowglobe

Re: [HTML] A Brief Introduction to HTML

Postby Michael on Wed Apr 01, 2009 12:04 pm

you didn't cover header tags or links. :|
Image
User avatar
Michael
Permanently Banned
 
Posts: 1620
Joined: Thu Jul 17, 2008 11:25 am
Location: Isle of Man

Re: [HTML] A Brief Introduction to HTML

Postby MisterTooh on Sun May 03, 2009 9:09 pm

Ok so I've been learning HTML thanks to your tutorial I started off pretty well but there's something wrong, it's not working out as it should. This is just me testing codes but I can't seem to get this one right. Please take a look and help out?

Code: Select all
<html>
<head>
<Title> Insanity Unleashed Studios</title>
</head>
<body style="background-color:black">
<h1 style="color:red"><b>Hello World!</b></h1>
<br/>
<p style="font-family:comic sans; color:red; font-size:25px;>
This will be my first Website!
<br/>
<br/>
<b>This is one of my favourite</b><a href="http://forum.jezism.net"
target="_blank">websites!</a>
<br/>
<br/>
Made from scratch through note pad with HTML Language.
I will dedicate it to my crew of Insane Friends, it will contain flash animations
by me and comics with the collaboration of my friends.
</p>
</body>
</html>
Image
Tooh - Forgotten Memories - | says (12:16):
Checking out some awesome photography
Jez - http://forum.jezism.net says (12:16):
I read 'pornography'

Even the people who never frown eventualy break down - Linkinpark
MisterTooh
Tiktaalik
Tiktaalik
 
Posts: 170
Joined: Sat Jul 19, 2008 3:50 pm
Location: Dubai, UAE

Re: [HTML] A Brief Introduction to HTML

Postby Sniffychimp on Mon May 04, 2009 3:01 am

Found the problem.

Code: Select all
<b>This is one of my favourite</b><a href="http://forum.jezism.net"
DrunkCat wrote:The Jezism community, teaching that with great intelligence, comes great pedophilia.

Image
Image
User avatar
Sniffychimp
Interstellar Explorer
Interstellar Explorer
 
Posts: 4480
Joined: Mon Jul 28, 2008 12:35 am
Location: Seattle, Washington, USA, The World, The Universe, A Snowglobe

Re: [HTML] A Brief Introduction to HTML

Postby Michael on Tue May 05, 2009 9:36 am

:| found a real problem..

Code: Select all
<p style="font-family:comic sans; color:red; font-size:25px;>

should be
Code: Select all
<p style="font-family:comic sans; color:red; font-size:25px;">
Image
User avatar
Michael
Permanently Banned
 
Posts: 1620
Joined: Thu Jul 17, 2008 11:25 am
Location: Isle of Man

Re: [HTML] A Brief Introduction to HTML

Postby MisterTooh on Tue May 05, 2009 12:02 pm

For Truely am Blind for I never saw such things... [facepalm]
Image
Tooh - Forgotten Memories - | says (12:16):
Checking out some awesome photography
Jez - http://forum.jezism.net says (12:16):
I read 'pornography'

Even the people who never frown eventualy break down - Linkinpark
MisterTooh
Tiktaalik
Tiktaalik
 
Posts: 170
Joined: Sat Jul 19, 2008 3:50 pm
Location: Dubai, UAE

Re: [HTML] A Brief Introduction to HTML

Postby Rezter on Tue May 05, 2009 6:20 pm

Also you used <br/> twice... which means you're makign a new paragraph if you're doign that you should do it lie kthis:

Code: Select all
<p>paraghraph 1</p>
<p>Paragraph 2 bruv</p>
User avatar
Rezter
Composer
Composer
 
Posts: 861
Joined: Fri Jul 18, 2008 2:22 am
Location: Middlesbrough, England

Re: [HTML] A Brief Introduction to HTML

Postby Tim on Tue May 05, 2009 6:45 pm

What if he doesn't want it under that style?
Image
User avatar
Tim
Rape & Pillager
Rape & Pillager
 
Posts: 2185
Joined: Fri Jul 18, 2008 9:10 pm
Location: Brighton, UK

Re: [HTML] A Brief Introduction to HTML

Postby WeTPaiNT on Wed May 06, 2009 2:09 am

MisterTooh wrote:Ok so I've been learning HTML thanks to your tutorial....

There's the problem, right there.
Image
User avatar
WeTPaiNT
Inquisitor
Inquisitor
 
Posts: 666
Joined: Tue Aug 05, 2008 5:08 pm
Location: Brooklyn, NY, USA

Re: [HTML] A Brief Introduction to HTML

Postby DrunkCat on Wed May 06, 2009 3:33 pm

This is why we can't have nice things.
Is God willing to prevent evil, but not able?
Then he is not omnipotent.
Is he able, but not willing?
Then he is malevolent.
Is he both able, and willing?
Then whence cometh evil?
Is he neither able nor willing?
Then why call him God?

"You are what you do not do." - Relax.
User avatar
DrunkCat
Interstellar Explorer
Interstellar Explorer
 
Posts: 4196
Joined: Tue Jul 22, 2008 3:54 pm
Location: Miami, FL

Re: [HTML] A Brief Introduction to HTML

Postby cutthecameras on Wed May 06, 2009 4:22 pm

DrunkCat wrote:This is why we can't have nice things.
Image
User avatar
cutthecameras
Rape & Pillager
Rape & Pillager
 
Posts: 2215
Joined: Sat Oct 11, 2008 9:02 pm
Location: Miami, Fl


Return to Tutorial Resource Base

Who is online

Users browsing this forum: No registered users and 1 guest

cron