Page 1 of 2 12 LastLast
Results 1 to 15 of 27
  1. #1
    Richaexpert is offline Junior
    Join Date
    Jan 2010
    Location
    India
    Posts
    174
    Thanks
    0
    Thanked 4 Times in 4 Posts
    Feedback Score
    0

    Default Basic html tutorial

    HTML uses tags to communicate to the client (browser) how to display text and images. Tags are contained in < > symbols. In most cases you start with the beginning tag, put in the word or words that will be affected by this tag, and at the end of the string of word(s), you place a closing tag.

    For example, to create a title for a document you would do the following:
    Code:

    <title>My First HTML Document</title>

    The closing tag normally contains a "/" before the directive to indicate the termination of the action.

    HTML tags are not case-sensitive, although URLs generally are. In most cases (with the exception of pre-formatted text) HTML collapses many spaces to one space and does not read blank lines. However, when you write your text you should leave several blank lines between paragraphs to make editing your HTML source document easier.

    The HTML tag

    Although not currently required by all clients, the <html> tag signals the point where text should start being interpreted as HTML code. It's probably a good idea to include it in all your documents now, so you don't have to go back to your files and add it later.

    The <html> tag is usually placed on the first line of your document. At the end of your document you should close with the </html> tag.

    The Head tag

    Just like the header of a memo, the head of an HTML document contains special information, like its title. The head of a document is demarcated by <head> and </head> respectively.

    For the purposes of this class, only the title tag, below, should be included in the document head. A typical head section might look like
    Code:

    <html>
    <head>
    <title>My First HTML Document</title>
    </head>

    Titles

    A title tag allows you to specify a Document Title in your browser window. When people make hotlists, this title is what they see in their list after they add your document. The format is:
    Code:

    <title>My First HTML Document</title>

    Remember, the title usually doesn't appear in the document itself, but in a title box or bar at the top of the window.

    The Body tag

    Like you might expect, the body tags <body> and </body> define the beginning and end of the bulk of your document. All your text, images, and links will be in the body of the document.

    The body should start after the head. A typical page might begin like
    Code:

    <html>
    <head>
    <title>My First HTML Document</title>
    </head>
    <body>

    Headers

    There are up to six levels of headers that can be used in your document, h1 through h6. Header 1 is the largest header and they get progressively smaller through header 6. Below are each of the six headers and how they usually appear in relation to one another.
    Code:

    <h1>This is a header 1 tag</h1>
    This is a header 1 tag



    <h2>This is a header 2 tag</h2>
    This is a header 2 tag



    <h3>This is a header 3 tag</h3>
    This is a header 3 tag



    <h4>This is a header 4 tag</h4>
    This is a header 4 tag



    <h5>This is a header 5 tag</h5>
    This is a header 5 tag



    <h6>This is a header 6 tag</h6>
    This is a header 6 tag

    Headers, as you notice, not only vary in size, they are also bold and have a blank line inserted before and after them. It's important to use headers only for headings, not just to make text bold (we cover the bold tag later).

    Paragraphs

    In HTML, a paragraph tag <p> should be put at the end of every paragraph of "normal" text (normal being defined as not already having a tag associated with it).
    Code:

    <p> causes a line break and adds a trailing blank line

    <br> causes a line break with no trailing blank line

    As a convenience to yourself and others who might have to edit your HTML documents, it's a very good idea to put two or three blank lines between paragraphs to facilitate editing.

    Preformatted text

    The preformatted text tag allows you to include text in your document that normally remains in a fixed-width font and retains the spaces, lines, and tabs of your source document. In other words, it leaves your text as it appears initially or just as you typed it in. Most clients collapse multiple spaces into one space, even tabs are collapsed to one space. The only way to circumvent this is to use the preformatted tag. Visually, preformatted text looks like a courier font.
    Code:

    <pre>this is

    an example
    of a preformatted
    text tag</pre>

    And this is how it displays:

    this is

    an example
    of a preformatted
    text tag

    Boldface and Italics

    You can add emphasis to text by using the boldface and italic tags or the emphasis and strong tags.

    There is an underline tag as well, but most people don't use it since text that is linked is often underlined. The potential for confusion and the archaic nature of underlining in general make it a poor marker for emphasis.

    When using these tags, you usually cannot (and probably should not) have text that is both boldface and italics; the last tag encountered is usually the tag that is displayed. For example, if you had a boldface tag followed immediately by an italic tag, the tagged word would appear in italics.

    Physical tags

    Code:
    This is a <b>boldface</b> tag.
    This is how boldfacing appears.

    This is an <i>italic</i> tag.
    This is how italics appear.

    Logical tags

    Code:

    This is a <strong>strongly emphasized</strong> tag.
    This is a strongly emphasized tag.

    This is an <em>emphasized</em> tag.
    This is an emphasized tag.

    There is a subtle distinction between the above "physical" tags which merely change the displayed font, and "logical" styles which are used (or eventually will be) to make types of emphasis client specific (for instance, using the <em> tag would make text red). While either style is fine, be aware that differences in these two kinds of tags may be more apparent with advances in HTML.

    Lists

    There is an easy way in HTML to have numbered, unnumbered, and definition lists. In addition, you can nest lists within lists.

    When using lists, you have no control over the amount of space between the bullet or list number, HTML automatically does this for you. Neither (as yet) do you have control over what type of bullet will be used as each browser is different.

    Unnumbered lists

    Unnumbered lists are started with the <ul> tag, followed by the actual list items, which are marked with the <li> tag. The list is ended with the ending tag </ul>.

    For example, here is an unnumbered list with three items:
    Code:

    <ul>
    <li> list item 1
    <li> list item 2
    <li> list item 3
    </ul>

    Here is how that list would display:

    * list item 1
    * list item 2
    * list item 3



    Numbered lists

    Here is the same list using a numbered list format:
    Code:

    <ol>
    <li> list item 1
    <li> list item 2
    <li> list item 3
    </ol>

    Here is how that list would display:

    1. list item 1
    2. list item 2
    3. list item 3

    Definition lists

    Definition lists allow you to indent without necessarily having to use bullets.
    Code:

    <dl>
    <dt> This is a term
    <dd> This is a definition
    <dd> And yet another definition
    <dt> Another term
    <dd> Another definition
    </dl>

    And here is how this would be displayed

    This is a term
    This is a definition
    And yet another definition
    Another term
    Another definition

    Nested lists

    Finally, here is a nested list within an unnumbered list (we could just have easily had a nested list within a numbered list).
    Code:

    <ul>
    <li> list item 1
    <ul>
    <li> nested item 1
    <li> nested item 2
    </ul>
    <li> list item 2
    <ul>
    <li> nested item 1
    <li> nested item 2
    </ul>
    <li> list item 3
    <ul>
    <li> nested item 1
    <li> nested item 2
    </ul>
    </ul>

    Here is how that list would display:

    * list item 1
    o nested item 1
    o nested item 2
    * list item 2
    o nested item 1
    o nested item 2
    * list item 3
    o nested item 1
    o nested item 2


    Blockquote

    The blockquote tag indents the text (both on the left and right) inside the tags. The blockquote tag looks like this:
    Code:

    <blockquote>...</blockquote>

    and displays like this:

    Blockquoted text is often used for indenting big blocks of text such as quotations. The text will be indented until the ending tag is encountered. Again, note that the text here is indented on both the left and the right margins.



    Center

    You can center text, images, and headings with the center tag:
    Code:

    <center>This is a centered sentence</center>

    This is a centered sentence.


    The center tag automatically inserts a line break after the closing center tag.

    Horizontal Rule

    To separate sections in a document, you can insert a horizontal rule tag <hr>. A horizontal rule is displayed as follows:

    Addresses

    The <address> tag normally appears at the end of a document and is used most frequently to mark information on contacting the author or institution that has supplied this information. Anything contained within the address tag appears in italics. The address tag is another example of a logical tag, and although it currently does nothing but make text appear in italics, this could change as HTML code advances.

    Here is an example of how an address might appear:
    Code:

    <address>
    Introduction to HTML <a href="mailto:webmaster@yoursite.com">My Email
    </address>

  2. #2
    ngseosept is offline Junior
    Join Date
    Sep 2009
    Posts
    187
    Thanks
    0
    Thanked 1 Time in 1 Post
    Feedback Score
    0

    Default

    you cannot fully understand html if you don't know the basic codes. thanks for the post pal.'

  3. #3
    Join Date
    Jan 2010
    Location
    Nepal
    Posts
    1,166
    Thanks
    15
    Thanked 22 Times in 22 Posts
    Feedback Score
    0

    Default

    thank you for the post.
    i always use html.su and w3schools.com as reference and to learn HTML.
    science and math : Mathematics
    biography of scientists : biography, math dictionary : dictionary

  4. #4
    tigulecorn is offline Freshman
    Join Date
    Mar 2010
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Feedback Score
    0

    Default

    well am assuming at the beginning of this tutorial that you know nothing about HTML. I am assuming, however, some computer knowledge. You wouldn't be looking at this page without having some knowledge. To continue with these Primers, you will need...

  5. #5
    Santos Bulus's Avatar
    Santos Bulus is offline Freshman
    Join Date
    Feb 2010
    Posts
    31
    Thanks
    0
    Thanked 1 Time in 1 Post
    Feedback Score
    0

    Smile

    HTML carries information about the web page though, the display of the document is solely dependent on the browser. For this reason, you should test your HTML code in the two most used browsers, Internet Explorer from Microsoft and Netscape Communicator from Netscape. With HTML you can embed various objects such as images, video, sound in your pages.

  6. #6
    chris34 is offline Banned
    Join Date
    Jan 2010
    Location
    U.K
    Posts
    51
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Feedback Score
    0

    Default

    Hello friends

    My name is Joe and I'm going to give you a few simple lessons on how to make a Web Page. I must warn you though, this is for "all wet behinda ears" Newbies. If you're at all experienced at this sort of thing, you'll probably find this tutorial a bit of a yawner.
    You'll be happy to learn that it's really pretty simple. The basic idea is this... A web page is nothing more than a file, a HTML file to be exact. It's called HTML because web page documents have the file extension .html or .htm. HTML stands for Hyper Text Mark-up Language. (If you are unclear about this file extension stuff, then you really are newbie!!

    Thanks for all friends

  7. #7
    rini is offline Junior
    Join Date
    Aug 2010
    Posts
    334
    Thanks
    0
    Thanked 5 Times in 5 Posts
    Feedback Score
    0

    Default

    Thanks richa for sharing this useful informations.

  8. #8
    meyoson is offline Freshman
    Join Date
    Jan 2011
    Posts
    49
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Feedback Score
    0

    Default

    I am new in this field but it is helpful for me. Thanks for sharing these helpful and Very well explained post.
    Something new to learn from this helpful post.I learned many things ever knew before.
    Highly informative piece, friend. Thank you for sharing this!

  9. #9
    jim253 is offline Junior
    Join Date
    Jan 2011
    Posts
    212
    Thanks
    0
    Thanked 1 Time in 1 Post
    Feedback Score
    0

  10. #10
    vergessen is offline Freshman
    Join Date
    Dec 2010
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Feedback Score
    0

  11. #11
    seoravikant is offline Banned
    Join Date
    Jan 2011
    Location
    Delhi
    Posts
    41
    Thanks
    1
    Thanked 1 Time in 1 Post
    Feedback Score
    0

    Default

    thanks for sharing your knowledge.

  12. #12
    Join Date
    Apr 2011
    Posts
    1,034
    Thanks
    1
    Thanked 5 Times in 4 Posts
    Feedback Score
    0

    Default

    do you have any ebooks for learning basic html coding? you seems pretty good. share with us more regarding this tutorial.

  13. #13
    Cortex123 is offline Master
    Join Date
    Dec 2010
    Posts
    2,287
    Thanks
    7
    Thanked 9 Times in 8 Posts
    Feedback Score
    0

    Default

    Good example of coding. Thanks for your tutorial.
    EWA Network Helped Me Make My First $500/day Campaign!
    Join Now!!!!

  14. #14
    ryan_platinum is offline Sophomore
    Join Date
    Jul 2011
    Posts
    113
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Feedback Score
    0

    Default

    Nice tutorial, need to get more into it.

  15. #15
    neevedu's Avatar
    neevedu is offline Junior
    Join Date
    Jul 2011
    Location
    India
    Posts
    151
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Feedback Score
    0

Page 1 of 2 12 LastLast

Similar Threads

  1. Creating a glowing transparent text - tutorial
    By himoacs in forum Graphics Design & Web Design
    Replies: 3
    Last Post: 08-02-2011, 08:38 AM
  2. The best html code for embeded video
    By raja1 in forum HTML / DHTML
    Replies: 9
    Last Post: 06-06-2011, 02:03 PM
  3. HTML Essential Training (Video Tutorial)
    By Richaexpert in forum Graphics Design & Web Design
    Replies: 0
    Last Post: 01-10-2010, 11:49 PM
  4. Html
    By Martina in forum HTML / DHTML
    Replies: 12
    Last Post: 02-09-2009, 03:35 PM
  5. Creating random bars in Photoshop - tutorial
    By himoacs in forum Graphics Design & Web Design
    Replies: 8
    Last Post: 06-02-2008, 03:10 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Partners: BOSTON WEB DEVELOPER, LLC   |   WEBCOSMO CLASSIFIEDS