Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 07-08-2009
Member
 
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
Reply With Quote
  #2  
Old 07-08-2009
Member
 
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.
Reply With Quote
  #3  
Old 07-08-2009
Member
 
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.
Reply With Quote
  #4  
Old 07-08-2009
Member
 
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>");
  }
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "If Statement in HTML"
Thread Thread Starter Forum Replies Last Post
How to use Else and Else If Statement in PHP? Orton Software Development 5 05-03-2010 06:49 AM
How to use If statement in PHP? Deabelos Software Development 4 09-02-2010 06:14 AM
How to define HTML Validator and services provided by HTML Validator Aldous Software Development 3 22-09-2009 01:12 PM
HTML if else statement Darthmouth Software Development 3 02-09-2009 06:02 PM
What is the difference between while statement & do statement? Athos Software Development 4 25-02-2009 08:52 PM


All times are GMT +5.5. The time now is 03:31 PM.