1.
Create
Session in html 011014
<script type="text/javascript">
$(document).ready(function () {
$("#btnsubmit").click(function () {
var username =
$("#txtusername").val();
var password = $("#txtpassword").val();
if (typeof(Storage)
!= "undefined") {
sessionStorage.setItem("username", username);
sessionStorage.setItem("pass", password);
//alert(localStorage.getItem("username"));
//
alert(localStorage.getItem("pass"));
}
if (username == "")
{
$("#txtusername").focus();
alert("Please enter the user name.");
return
false;
}
else if
(password == "") {
$("#txtpassword").focus();
alert("Please enter the password.");
return
false;
}
else
return
true;
});
});
</script>
2.
User
That session
<script language="javascript"
type="text/javascript">
$(document).ready(function () {
// var query =
window.location.search.substring(1);
// var
parms = query.split('=');
// if (parms[1] != "Admin")
// window.location.href =
"ClientLogin.aspx";
// if
(typeof(Storage) != "undefined") {
var admin =
sessionStorage.getItem("username");
var pass
= sessionStorage.getItem("pass");
if(admin != 'admin' && pass != 'admin123')
window.location.href = "ClientLogin.aspx";
//}
});
</script>
1. There are six HTML heading tags all of varying degrees of importance.
--------------------------------------------------------------------------------------------------------------------
2. The <p> tag and its' closing </p> tag places the enclosed content on a new line and adds a little space above
and below it.
--------------------------------------------------------------------------------------------------------------------
3.The <em> tag and its' closing </em> tag emphasise our text with italics.
--------------------------------------------------------------------------------------------------------------------
4. The <strong> tag and its' closing </strong> tag strongly emphasise the enclosed content, making it bold in word
processor parlance.
--------------------------------------------------------------------------------------------------------------------
5. The <ol> tag and its' closing </ol> tag are used for creating an ordered list. An ordered list is a collection
of related items where the sequencing or order DOES matter.
The <ul> tag and its' closing </ul> tag are used for creating an unordered list. An unordered list is a
collection of related items where the sequencing or order DOES NOT matter.
The <li> tag and its' closing </li> tag defines a list item for use in ordered <ol> and unordered <ul> lists.
--------------------------------------------------------------------------------------------------------------------
6. The <img /> tag is a self closing tag used to create an area on the page to hold the referenced image.
The src and alt attributes are mandatory when using the <img /> tag.
--------------------------------------------------------------------------------------------------------------------
7. Reset your whole page in HTML
<input id="Reset" type="reset" value=" Reset " />
--------------------------------------------------------------------------------------------------------------------
8. Image download with anchor Tag
<a href='images/E-Invite.jpg' download='images/E-Invite.jpg' target="_blank">Trade Visitor Invite</a>
------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------
Note;- when u r facing problem that border color is not applied on all td then u can do it via below code.
<table style="border-collapse:collapse; border-color:#990000;" border="1" ></table>---Not working properly.
<table style="border-collapse:collapse;" bordercolor="#990000" border="1" cellpadding="4"
cellspacing="0" width="100%">
</table>
--------------------------------------------------------------------------------------------------------------------
Version Year
HTML 1991
HTML+ 1993
HTML 2.0 1995
HTML 3.2 1997
HTML 4.01 1999
XHTML 1.0 2000
HTML5 2012
XHTML5 2013
--------------------------------------------------------------------------------------------------------------------
The <!DOCTYPE> declaration is not an HTML tag; it is an instruction to the web browser about what version of HTML
the page is written in.
--------------------------------------------------------------------------------------------------------------------
for save the the notepad ..
you can use either the .htm or the .html file extension. There is no difference, it is entirely up to you.
--------------------------------------------------------------------------------------------------------------------
HTML headings are defined with the <h1> to <h6> tags. <h1>This is a heading</h1>
--------------------------------------------------------------------------------------------------------------------
HTML images are defined with the <img> tag. <img src="w3schools.jpg" width="104" height="142">
--------------------------------------------------------------------------------------------------------------------
HTML Elements <p> element: <html> element:
--------------------------------------------------------------------------------------------------------------------
<p>This is a paragraph The example above works in most browsers, because the closing tag is considered optional.
--------------------------------------------------------------------------------------------------------------------
HTML elements with no content are called empty elements.
<br> is an empty element without a closing tag (the <br> tag defines a line break).
Tip: In XHTML, all elements must be closed. Adding a slash inside the start tag, like <br />, is the proper way
of closing empty elements in XHTML (and XML).
--------------------------------------------------------------------------------------------------------------------
HTML Tip: Use Lowercase Tags
HTML tags are not case sensitive: <P> means the same as <p>. Many web sites use uppercase HTML tags.
W3Schools use lowercase tags because the World Wide Web Consortium (W3C) recommends lowercase in HTML 4, and
demands lowercase tags in XHTML.
--------------------------------------------------------------------------------------------------------------------
HTML ATTRIBUTES:- HTML elements can have attributes
Attributes provide additional information about an element
For Ex:- class ,id ,style ,title
--------------------------------------------------------------------------------------------------------------------
html comment:- <!-- This is a comment -->
--------------------------------------------------------------------------------------------------------------------
Formating Tag:- <b> ,<em> ,<i>,<small> ,<strong>,<sub>,<sup>,<ins>,<del>,<mark>.
Often <strong> renders as <b>, and <em> renders as <i>.
--------------------------------------------------------------------------------------------------------------------
The <head> element is a container for all the head elements. Elements inside <head> can include scripts, instruct
the browser where to find style sheets, provide meta information, and more.
The following tags can be added to the head section: <title>, <style>, <meta>, <link>, <script>, <noscript>,
and <base>.
--------------------------------------------------------------------------------------------------------------------
The <link> tag defines the relationship between a document and an external resource.
The <link> tag is most used to link to style sheets:
<head>
<link rel="stylesheet" type="text/css" href="mystyle.css">
</head>
--------------------------------------------------------------------------------------------------------------------
The <style> tag is used to define style information for an HTML document.
Inside the <style> element you specify how HTML elements should render in a browser:
<head>
<style type="text/css">
body {background-color:yellow;}
p {color:blue;}
</style>
</head>
--------------------------------------------------------------------------------------------------------------------
The metadata can be used by browsers (how to display content or reload page), search engines (keywords),
or other web services.
<meta> tags always go inside the <head> element.
<meta> Tags - Examples of Use
Define keywords for search engines:
<meta name="keywords" content="HTML, CSS, XML, XHTML, JavaScript">
Define a description of your web page:
<meta name="description" content="Free Web tutorials on HTML and CSS">
Define the author of a page:
<meta name="author" content="Hege Refsnes">
Refresh document every 30 seconds:
<meta http-equiv="refresh" content="30">
--------------------------------------------------------------------------------------------------------------------
CSS was introduced together with HTML 4, to provide a better way to style HTML elements.
CSS can be added to HTML in the following ways:
Inline - using the style attribute in HTML elements
Internal - using the <style> element in the <head> section
External - using an external CSS file
The preferred way to add CSS to HTML, is to put CSS syntax in separate CSS files.
--------------------------------------------------------------------------------------------------------------------
In HTML 4, several tags and attributes were used to style documents. These tags are not supported in newer
versions of HTML.
Avoid using the elements: <font>, <center>, and <strike>, and the attributes: color and bgcolor.
--------------------------------------------------------------------------------------------------------------------
Src stands for "source".
Image with default alignment (align="bottom"):
--------------------------------------------------------------------------------------------------------------------
//Div design
<div style="background-color: #624e8e; line-height: 28px; color: #ffffff; font-weight: bold;
padding: 0px 0px 0px 5px; font-size: 15px; margin: 0px 0px 10px;">Forklift Services</div>
--------------------------------------------------------------------------------------------------------------------
//onmouse hover and out change the color of row
oRow4.Attributes.Add("onmouseover", "this.style.backgroundColor='#FBE4EB';");
oRow4.Attributes.Add("onmouseout", "this.style.backgroundColor='#fdfdfa';");
--------------------------------------------------------------------------------------------------------------------
//Code behind alert message on button click
oButton4.Attributes.Add("OnClick", "if (! confirm('Do you really want to Hide/Delete?'))return false;
window.parent.contents.location.reload();");
--------------------------------------------------------------------------------------------------------------------
//attach the link on page any where may be on image.
<map name="Map" id="Map">
<area shape="rect" coords="250,91,379,129" href="../home" target="_blank" />
<area shape="rect" coords="390,94,474,127" href="logoff.aspx" />
</map>
1. There are six HTML heading tags all of varying degrees of importance.
--------------------------------------------------------------------------------------------------------------------
2. The <p> tag and its' closing </p> tag places the enclosed content on a new line and adds a little space above
and below it.
--------------------------------------------------------------------------------------------------------------------
3.The <em> tag and its' closing </em> tag emphasise our text with italics.
--------------------------------------------------------------------------------------------------------------------
4. The <strong> tag and its' closing </strong> tag strongly emphasise the enclosed content, making it bold in word
processor parlance.
--------------------------------------------------------------------------------------------------------------------
5. The <ol> tag and its' closing </ol> tag are used for creating an ordered list. An ordered list is a collection
of related items where the sequencing or order DOES matter.
The <ul> tag and its' closing </ul> tag are used for creating an unordered list. An unordered list is a
collection of related items where the sequencing or order DOES NOT matter.
The <li> tag and its' closing </li> tag defines a list item for use in ordered <ol> and unordered <ul> lists.
--------------------------------------------------------------------------------------------------------------------
6. The <img /> tag is a self closing tag used to create an area on the page to hold the referenced image.
The src and alt attributes are mandatory when using the <img /> tag.
--------------------------------------------------------------------------------------------------------------------
7. Reset your whole page in HTML
<input id="Reset" type="reset" value=" Reset " />
--------------------------------------------------------------------------------------------------------------------
8. Image download with anchor Tag
<a href='images/E-Invite.jpg' download='images/E-Invite.jpg' target="_blank">Trade Visitor Invite</a>
------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------
Note;- when u r facing problem that border color is not applied on all td then u can do it via below code.
<table style="border-collapse:collapse; border-color:#990000;" border="1" ></table>---Not working properly.
<table style="border-collapse:collapse;" bordercolor="#990000" border="1" cellpadding="4"
cellspacing="0" width="100%">
</table>
--------------------------------------------------------------------------------------------------------------------
Version Year
HTML 1991
HTML+ 1993
HTML 2.0 1995
HTML 3.2 1997
HTML 4.01 1999
XHTML 1.0 2000
HTML5 2012
XHTML5 2013
--------------------------------------------------------------------------------------------------------------------
The <!DOCTYPE> declaration is not an HTML tag; it is an instruction to the web browser about what version of HTML
the page is written in.
--------------------------------------------------------------------------------------------------------------------
for save the the notepad ..
you can use either the .htm or the .html file extension. There is no difference, it is entirely up to you.
--------------------------------------------------------------------------------------------------------------------
HTML headings are defined with the <h1> to <h6> tags. <h1>This is a heading</h1>
--------------------------------------------------------------------------------------------------------------------
HTML images are defined with the <img> tag. <img src="w3schools.jpg" width="104" height="142">
--------------------------------------------------------------------------------------------------------------------
HTML Elements <p> element: <html> element:
--------------------------------------------------------------------------------------------------------------------
<p>This is a paragraph The example above works in most browsers, because the closing tag is considered optional.
--------------------------------------------------------------------------------------------------------------------
HTML elements with no content are called empty elements.
<br> is an empty element without a closing tag (the <br> tag defines a line break).
Tip: In XHTML, all elements must be closed. Adding a slash inside the start tag, like <br />, is the proper way
of closing empty elements in XHTML (and XML).
--------------------------------------------------------------------------------------------------------------------
HTML Tip: Use Lowercase Tags
HTML tags are not case sensitive: <P> means the same as <p>. Many web sites use uppercase HTML tags.
W3Schools use lowercase tags because the World Wide Web Consortium (W3C) recommends lowercase in HTML 4, and
demands lowercase tags in XHTML.
--------------------------------------------------------------------------------------------------------------------
HTML ATTRIBUTES:- HTML elements can have attributes
Attributes provide additional information about an element
For Ex:- class ,id ,style ,title
--------------------------------------------------------------------------------------------------------------------
html comment:- <!-- This is a comment -->
--------------------------------------------------------------------------------------------------------------------
Formating Tag:- <b> ,<em> ,<i>,<small> ,<strong>,<sub>,<sup>,<ins>,<del>,<mark>.
Often <strong> renders as <b>, and <em> renders as <i>.
--------------------------------------------------------------------------------------------------------------------
The <head> element is a container for all the head elements. Elements inside <head> can include scripts, instruct
the browser where to find style sheets, provide meta information, and more.
The following tags can be added to the head section: <title>, <style>, <meta>, <link>, <script>, <noscript>,
and <base>.
--------------------------------------------------------------------------------------------------------------------
The <link> tag defines the relationship between a document and an external resource.
The <link> tag is most used to link to style sheets:
<head>
<link rel="stylesheet" type="text/css" href="mystyle.css">
</head>
--------------------------------------------------------------------------------------------------------------------
The <style> tag is used to define style information for an HTML document.
Inside the <style> element you specify how HTML elements should render in a browser:
<head>
<style type="text/css">
body {background-color:yellow;}
p {color:blue;}
</style>
</head>
--------------------------------------------------------------------------------------------------------------------
The metadata can be used by browsers (how to display content or reload page), search engines (keywords),
or other web services.
<meta> tags always go inside the <head> element.
<meta> Tags - Examples of Use
Define keywords for search engines:
<meta name="keywords" content="HTML, CSS, XML, XHTML, JavaScript">
Define a description of your web page:
<meta name="description" content="Free Web tutorials on HTML and CSS">
Define the author of a page:
<meta name="author" content="Hege Refsnes">
Refresh document every 30 seconds:
<meta http-equiv="refresh" content="30">
--------------------------------------------------------------------------------------------------------------------
CSS was introduced together with HTML 4, to provide a better way to style HTML elements.
CSS can be added to HTML in the following ways:
Inline - using the style attribute in HTML elements
Internal - using the <style> element in the <head> section
External - using an external CSS file
The preferred way to add CSS to HTML, is to put CSS syntax in separate CSS files.
--------------------------------------------------------------------------------------------------------------------
In HTML 4, several tags and attributes were used to style documents. These tags are not supported in newer
versions of HTML.
Avoid using the elements: <font>, <center>, and <strike>, and the attributes: color and bgcolor.
--------------------------------------------------------------------------------------------------------------------
Src stands for "source".
Image with default alignment (align="bottom"):
--------------------------------------------------------------------------------------------------------------------
//Div design
<div style="background-color: #624e8e; line-height: 28px; color: #ffffff; font-weight: bold;
padding: 0px 0px 0px 5px; font-size: 15px; margin: 0px 0px 10px;">Forklift Services</div>
--------------------------------------------------------------------------------------------------------------------
//onmouse hover and out change the color of row
oRow4.Attributes.Add("onmouseover", "this.style.backgroundColor='#FBE4EB';");
oRow4.Attributes.Add("onmouseout", "this.style.backgroundColor='#fdfdfa';");
--------------------------------------------------------------------------------------------------------------------
//Code behind alert message on button click
oButton4.Attributes.Add("OnClick", "if (! confirm('Do you really want to Hide/Delete?'))return false;
window.parent.contents.location.reload();");
--------------------------------------------------------------------------------------------------------------------
//attach the link on page any where may be on image.
<map name="Map" id="Map">
<area shape="rect" coords="250,91,379,129" href="../home" target="_blank" />
<area shape="rect" coords="390,94,474,127" href="logoff.aspx" />
</map>
No comments:
Post a Comment