Login Register






HTML Tutorial filter_list
Author
Message
HTML Tutorial #1
1. What is HTML?
2. What can HTML be used for?
3. How should I Start?
4. What are HTML Tags?
5. What else should I know?
----------------------------------------------------------------------------------------------------------------------------
1. WHAT IS HTML?

Before you start making Websites you should know the history and background of HTML and what it stands for and what it does.

If you want to learn HTML and Code with it you need a few things.
1. A computer with a OS on it such as Windows or linux
2. Web browser software.
3. Web coding applet such as notepad or dreamweaver or frontpage something like that.

Ok now if you have the stuff listed above now to move on and and know what HTML Stands for. HTML Stands for Hyptertext Markup Language (HTML). One person who started HTML was Tim Berners-Lee
----------------------------------------------------------------------------------------------------------------------------
2. WHAT CAN HTML BE USED FOR?
HTML is used to make webpages. HTML is one of the easy Lang to learn and code in, without HTML We might not have Webpages.
----------------------------------------------------------------------------------------------------------------------------
3. WHERE SHOULD I START?
Ok if you did what I said on the first step and got a computer and something to code in such as notepad you can do what I say.

Open up notepad or your favorite text editor.
First thing were going to learn is the Skeletal structure of and HTML Document. Type what I type in your webpage editor.

<HTML>
<HEAD>
<TITLE>Document Title</TITLE>
</HEAD>
<BODY>
contents of document
</BODY>
</HTML>

Ok now you just created your first HTML Document/Web page now to save it,

1. Open up the Save as box
2. Select File, Save as and be sure to select Text Documents as teh file type.
3. Name the File site.html
4. Choose the folder on your computer to save the html document to. ( Write down were you saved it to )
5. Click save or Ok
6. Now open up your Browser such as Internet Explorer
7. in your browser click the file, Open and click browse. and go to the folder you saved the file in and hit open (note these options may change if using a different OS)
8. Now your site should show up in the browser you should see printed on the screen contents of document

Now I'm going to go into detail on what you did to create that page.
First you need to learn what a opening and closing tags are.

An opening Tag is an HTML that that indicates the start of and HTML Command; the text affected by the command appears after the opening tag. opening tags always begin with < and End with >, as in <HTML>

A closing Tag is an HTML Tag that indicates the end of and html command; the text affected by this command appears before the closing tag. Closing tags always begin with </ and End with >, and in </HTML>

Ok now that you learned those terms I'm going to show you what each one of those sections you typed in that Document meant and what it did.

<HTML>
That tag defines That it is a HTML document and beginning of the document .

<HEAD>

That tag always appears near the beginning of the HTML code for a page , it is used to identify the title of a page .

</HEAD>
That tag tells that its the closing of the head section of the page.

<BODY>
That tells the web browser that that is the start of the body of the page. anything between this and </body> is posted on the page.

Example:

Code:
<BODY> Hello world! I am a webpage! </BODY>

See how that works?

</BODY>
tells the browser it is the closing of the body

</HTML>
That tells the browser it is the end of the HTML document.

----------------------------------------------------------------------------------------------------------------------------

4. WHAT ARE HTML TAGS?
ok as you saw above you used HTML Tags. Well Now Ill tell you what HTML Tags are.

HTML tags are a must in HTML they mark up text-based documents. They instruct Web browsers how to display content. Tags indicate where a given element begins, you must Place the appropriate tag before it. This consist of a certain abbreviation sandwiched by the less-Than (<) and Greater-Thank (>) symbols. For example as show before <HTML>. Not all Tags need a opening and closing though.

----------------------------------------------------------------------------------------------------------------------------

5. WHAT ELSE SHOULD I KNOW?
Ok now that you know the skeletal structure of a HTML document I'm going to show you a few Tags for HTML.

TEXT TAGS: INLINE STYLES

These tags are used to change the style of your text for each section ill put a = to show what each one looks like
<B>...</B> = Bold text
<FONT>...</FONT> = Font
<I>...</I> = italic text
<SMALL>...</SMALL> = Small text
<BIG>...</BIG> = Big text
<S>...</S> = striked text
<U>..</U> = underlined text
<CENTER>..</CENTER> = Centered text


STRUCTURAL TAGS

<!DOCTYPE>
<BASE /> = All other URLs in the document are resolved against this location
<BODY>...</BODY> = Defines its the Body of the document.
<HEAD>...</HEAD> = Defines its the Head of the document.
<HTML>...</HTML> = Defines its a HTML Document.
<LINK /> = Defines a relationship between the current document and another document.
<META> = Should be placed in the <HEAD> Tag it provides additional information about the document.
<TITLE>...</TITLE> = Defines its the Title of the Document.


SCRIPT TAGS

<script> = places a script within the document.
<NOSCRIPT>


MULTIMEDIA TAGS
used to play multimedia documents on a webpage.
<APPLET>
<BGSOUND> = is used to play a background sound.
<EMBED> = Embeds an object into the Web Page.
<OBJECT> = A generick element used for placeing an object on a page.
<PARAM>

FRAME TAGS
Used to create HTML Frames on a webPage
<FRAME> = Defines a single frame within a <frameset>
<FRAMESET> = Defines a collection of frames or other framesets
<NOFRAMES>


LINKING WITH A DOCUMENT

Ok these tags can go in the body section of your page. These are Tags for linking to websites and other documents. <A> is a anchor meaning it will link to another document or web resource. it can also serve to label a fragment within a document. For example to link to ubers.org you could try <A HREF="http://www.ubers.org">Jinx</A>

the section between > < is the comment or text part that will show up on a page. for example >ubers< with ubers put in it will print out ubers and if you click that it will work as a link.

<A NAME="fragmentname">TEXT</A>
<A HREF="fragmentname">TEXT</A>

BULLETED LIST/UNORDERED TAGS
This is used if you would like to make a bulleted list. YOu know the thing with the dots then your sentance or what ever to the right of the dots. Each one enters on a new line.

<UL>
<LI>Your text
<LI>Your text
<LI>Your text
</UL>

When that is made it should print out like this

Your Text
Your Text
Your Text

NUMBERED LIST/ORDERED TAGS

Ok A numbered list is basicly what it sounds like, A numbered list from 1- to what your LI stop at for each one is a number starting at one to what ever. Each one enters on a new line.

<OL>
<LI>Your Text
<LI>Your Text
<LI>Your Text
</OL>

When that is made it should print out like this but instead of the dots it would be in numbers in order

Your Text
Your Text
Your Text

TABLES
Tables are meant to display data in a tabular format. Tables use to be used for The page layout purposes before HTML 4 came out. Now this is being Discourage by the W3C

<TABLE>...</TABLE> = Creates a table
<TBODY>...</TBODY> = Defines the Table body
<TD>...</TD> = Defines a cell's contents
<TFOOT>...</TFOOT> = Defines the Table footer
<TH>...</TH> = Defines the cell contents of the table header.
<TR>...</TR> - Defines a row of table cells

EX: Here is an example of a Table setup

<TABLE BORDER="1">
<TR><TD>Name:<TD>James</TD></TR>
<TR><TD>Age:<TD>14</TD></TR>
</TABLE>


FRAMES

Frames create panels in the web browser window that are used to display content from different source documents; Frames also allow you to build a web page composed of several Web Pages.

<FRAME /> = Defines a frame
<FRAMESET>...</FRAMESET> = Defines the layout of frames within a window
<IFRAME>...</IFRAME> = creates a inline frame
<NOFRAME>...</NOFRAME> = Alternative content when frames are not supported

EX: of Inline Frames

Code:
<IFRAME HEIGHT=120 widht=250 SCROLLING=yes SRC=http://www.mixfevers.com name=test></IFRAME>

COMMENT TAG
Does just what the Tag says This tag Does not print the comment out on the webpage, but you can view it when looking at the source code.

<!-- your comment -->

Thats all for this tutorial, hope you liked it Smile


Reply

RE: HTML Tutorial #2
If I might add a few pointers, I find your tutorial quite outdated and teaching stuff that's no longer valid, no longer complies with current web-design practices/standards/conventions and promotes some bad coding practices:
  • Don't use uppercase names of the tags. While it was okay years ago, modern HTML specifications (mostly XHTML) explicitly forbid uppecrase tags - it must be lower case, so instead of <HTML> you write <html>. While the uppercase will probably work in most browsers, it's against standards in some cases and such code isn't valid, so it's generally recommended to simply use lowercase, otherwise it might give a bit of trouble when someone learnes to use uppercase ones and then has to switch to more modern XHTML
  • It is strongly discouraged to use tags like <font>, <center>, <big>, <small>, <s> or <u> as well as <frame> or <frameset>. These tags are very obsolete and encourage bad HTML coding practices. Good HTML code only describes content and doesn't specify any styles at all, instead, styles are specified in separate style sheet (CSS). These tags are already deprecated in the older version of HTML (4.01) and they are removed and no longer supported in new version HTML5, so they should be completely avoided. I recommend not teaching people these deprecated and basically bad tags, or put them in "History" corner and such, otherwise you're giving them bad programming practices
  • Tags <frame> and <frameset>, apart form fact that they are deprecated in HTML4.01 and removed in HTML5, are very bad and should be generally avoided, using them to construct your webpage is extremelly outdated and bad practice, it often gives trouble for search engines to index the page, where user might end just with the menu or something, plus it also causes accessibility problems. Simply, don't use them. <iframe> is fine if used correctly, for example for embedding stuff.
  • All attribute values should/must be wrapped in quotes, like this <a href="http://musicstring.solirax.org">Mylink</a> Leaving them just like that is strongly discouraged in HTML4.01 a strictly forbidden in XHTML, plus apart form that, it's quite bad practice, so please, always put your attribute values in quotes.
I love creativity and creating, I love science and rational thought, I am an open atheist and avid self-learner.

Reply

RE: HTML Tutorial #3
(02-25-2012, 03:09 PM)Frooxius Wrote: If I might add a few pointers, I find your tutorial quite outdated and teaching stuff that's no longer valid, no longer complies with current web-design practices/standards/conventions and promotes some bad coding practices:
  • Don't use uppercase names of the tags. While it was okay years ago, modern HTML specifications (mostly XHTML) explicitly forbid uppecrase tags - it must be lower case, so instead of <HTML> you write <html>. While the uppercase will probably work in most browsers, it's against standards in some cases and such code isn't valid, so it's generally recommended to simply use lowercase, otherwise it might give a bit of trouble when someone learnes to use uppercase ones and then has to switch to more modern XHTML
  • It is strongly discouraged to use tags like <font>, <center>, <big>, <small>, <s> or <u> as well as <frame> or <frameset>. These tags are very obsolete and encourage bad HTML coding practices. Good HTML code only describes content and doesn't specify any styles at all, instead, styles are specified in separate style sheet (CSS). These tags are already deprecated in the older version of HTML (4.01) and they are removed and no longer supported in new version HTML5, so they should be completely avoided. I recommend not teaching people these deprecated and basically bad tags, or put them in "History" corner and such, otherwise you're giving them bad programming practices
  • Tags <frame> and <frameset>, apart form fact that they are deprecated in HTML4.01 and removed in HTML5, are very bad and should be generally avoided, using them to construct your webpage is extremelly outdated and bad practice, it often gives trouble for search engines to index the page, where user might end just with the menu or something, plus it also causes accessibility problems. Simply, don't use them. <iframe> is fine if used correctly, for example for embedding stuff.
  • All attribute values should/must be wrapped in quotes, like this <a href="http://musicstring.solirax.org">Mylink</a> Leaving them just like that is strongly discouraged in HTML4.01 a strictly forbidden in XHTML, plus apart form that, it's quite bad practice, so please, always put your attribute values in quotes.

Thanks for your constructive critisism, and yes, I haven't learnt html5 or xhtml, a bit outdated on web development. :p


Reply

RE: HTML Tutorial #4
I recommend website http://www.w3schools.com, it contains both tutorials (though not THAT good for some languages in my opinion, although they mention some important syntax rules) and also references, that list supported tags, support in various browsers, various attributes and such, so it can also serve as a reference when doing some actual web development.
I love creativity and creating, I love science and rational thought, I am an open atheist and avid self-learner.

Reply

RE: HTML Tutorial #5
music bg <embed src="http://www.youtube.com/v/zZ9Ojo22yAo?version=3&loop=1&autoplay=1" width="1" height="1">


and marqu text <marquee> your text </marquee>

Reply

RE: HTML Tutorial #6
CSS trick for animating background:
<html>
<head>
<style type="text/css">
#shape
{
border-radius: 15px;
width: 200px;
height: 200px;
background: white;
animation:demo 5s;
-moz-animation:demo 5s linear 2s infinite alternate;
-o-animation:demo 5s linear 2s infinite alternate;
-webkit-animation:demo 5s linear 2s infinite alternate;
}
@keyframes demo
{
0% {background: #A9F5F2;}
25% {background: #F2F5A9;}
50% {background: #F5A9A9}
100% {background: #819FF7}
}

@-moz-keyframes demo
{
0% {background: #A9F5F2;}
25% {background: #F2F5A9;}
50% {background: #F5A9A9}
100% {background: #819FF7}
}

@-o-keyframes-demo
{
0% {background: #A9F5F2;}
25% {background: #F2F5A9;}
50% {background: #F5A9A9}
100% {background: #819FF7}
}

@-webkit-keyframes demo
{
0% {background: #A9F5F2;}
25% {background: #F2F5A9;}
50% {background: #F5A9A9}
100% {background: #819FF7}
}
}
</style>
<body>
<div id="shape">
</div>
</body>
</html>
[Image: cooltext980231940.gif]

Reply