Results 1 to 4 of 4

Thread: If Statement in HTML

  1. #1
    Join Date
    Aug 2009
    Posts
    2

    If Statement in HTML

    Hi friends

    I am working on my college project. we are making small websites in HTML. In that i want to use If Statement . If anyone know about How to use If Statement in HTML please help me

    Thanks

  2. #2
    Join Date
    Dec 2008
    Posts
    63

    Re: If Statement in HTML

    The evidence the structure of an HTML document and indicate how you want the browser displays your website. In general, the elements consist of an opening tag, content and a closing tag.

    Tags are labels that you use to mark the beginning and end of an element.

    All the tags have the same format: they begin with a less than sign "<" and end with a greater than sign ">".

    Generally speaking, there are two types of tags: tags Openable (<html>) and closing tag (</ html>). The only difference between both the slash "/". You tag the content by placing it between an opening tag and closing tag.

    HTML is only a matter of elements. Learn HTML is to know and use different tags.

  3. #3
    Join Date
    Dec 2008
    Posts
    40

    Re: If Statement in HTML

    The elements h1 h2 h3 h4 h5 and h6 are used to scoring titles, "h" is for "heading" (NdT title), where h1 is the first level and normally with the body's largest, h2 is the second level and a usually slightly smaller, and h6 is the sixth and final level in the hierarchy of titles and normally the smallest text.

  4. #4
    Join Date
    May 2008
    Posts
    184

    Re: If Statement in HTML

    if statement - use this statement to execute some code only if a specified condition is true

    if (condition)
    {
    code to be executed if condition is true
    }

    Code:
    if (time<4)
      {
      document.write("<b>Good Evening</b>");
      }

Similar Threads

  1. How to use Else and Else If Statement in PHP?
    By Orton in forum Software Development
    Replies: 5
    Last Post: 05-03-2010, 06:49 AM
  2. How to use If statement in PHP?
    By Deabelos in forum Software Development
    Replies: 4
    Last Post: 09-02-2010, 06:14 AM
  3. Replies: 3
    Last Post: 22-09-2009, 01:12 PM
  4. HTML if else statement
    By Darthmouth in forum Software Development
    Replies: 3
    Last Post: 02-09-2009, 06:02 PM
  5. Replies: 4
    Last Post: 25-02-2009, 08:52 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,653,469,552.44146 seconds with 17 queries