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
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
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.
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.
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>"); }
Bookmarks