Sponsored Links


Results 1 to 7 of 7

Thread: HTML Elements

  1. #1
    Junior Member allahwahid's Avatar
    Join Date
    Apr 2011
    Posts
    18

    98 HTML Elements

    Sponsored Links1


    HTML Element Syntax

    A
    1. n HTML element starts with a start tag / opening tag
    2. An HTML element ends with an end tag / closing tag
    3. The element content is everything between the start and the end tag
    4. Some HTML elements have empty content
    5. Empty elements are closed in the start tag
    6. Most HTML elements can have attributes


    HTML Document Example

    HTML Code:
    <html>
    
    <body>
    <p>This is a paragraph.</p>
    </body>
    
    </html>
    HTML Example Explained

    The <p> element:

    <p>This is my first paragraph.</p>
    The <p> element defines a paragraph in the HTML document.
    The element has a start tag <p> and an end tag </p>.
    The element content is: This is my first paragraph.

    The <body> element:

    HTML Code:
    <body>
    <p>This is my first paragraph.</p>
    </body>
    The <body> element defines the body of the HTML document.
    The element has a start tag <body> and an end tag </body>.
    The element content is another HTML element (a p element).

    The <html> element:

    HTML Code:
    <html>
    
    <body>
    <p>This is my first paragraph.</p>
    </body>
    
    </html>
    The <html> element defines the whole HTML document.
    The element has a start tag <html> and an end tag </html>.
    The element content is another HTML element (the body element).

    Don't Forget the End Tag

    Some HTML elements might display correctly even if you forget the end tag:

    <p>This is a paragraph
    <p>This is a paragraph
    The example above works in most browsers, because the closing tag is considered optional.

    Never rely on this. Many HTML elements will produce unexpected results and/or errors if you forget the end tag .

    Empty HTML Elements

    HTML elements with no content are called empty elements.

    <br> is an empty element without a closing tag (the <br> tag use for line break).

  2. #2
    Administrator Xpert's Avatar
    Join Date
    May 2010
    Location
    Jhelum
    Posts
    6,239
    i guess you should upload zip files and there should be .html files inside that zip bundle

  3. #3
    Junior Member allahwahid's Avatar
    Join Date
    Apr 2011
    Posts
    18
    ok admin g

  4. #4

  5. #5

  6. #6
    Junior Member allahwahid's Avatar
    Join Date
    Apr 2011
    Posts
    18
    ya its my own picture You can find me on Facebook

  7. #7
    Administrator Xpert's Avatar
    Join Date
    May 2010
    Location
    Jhelum
    Posts
    6,239
    Ok good to know that where are you disappear now a days?

    Sponsored Links

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 07-20-2011, 11:48 PM
  2. Replies: 0
    Last Post: 07-11-2011, 01:54 AM
  3. div tag is used in html 2011
    By Vuhelper in forum HTML & Css
    Replies: 0
    Last Post: 05-27-2011, 04:29 AM
  4. HTML <img> Tag for html users 2011
    By Xpert in forum HTML & Css
    Replies: 0
    Last Post: 04-28-2011, 12:54 AM
  5. HTML and CSS working
    By Xpert in forum HTML & Css
    Replies: 0
    Last Post: 10-05-2010, 10:17 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
  •  
-: Vuhelp Disclaimer :-
None of the files shown here are hosted or transmitted by this server. The links are provided solely by this site's users. The administrator's or staff of Vuhelp.net cannot be held responsible for what its users post, or any other actions of its users. You may not use this site to distribute or download any material when you do not have the legal rights to do so. It is your own responsibility to adhere to these terms. If you have any doubts about legality of content or you have any suspicions, feel free to contact us.
Online Education | JhelumSoft