Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Aviance School is one of the largest web solutions platform in India for developers to learn and share their programming knowledge and build their careers.
The <head> element is a container for metadata and is used between the <html> & <body> tag.
Metadata typically define the document title, character set, styles, links, scripts, and other meta information.
<!DOCTYPE html>
<html lang="en-US">
<head>
<title>HTML head tag</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="Keywords" content="HTML,CSS,JavaScript,source code">
<meta name="Description" content="lots of examples of how to use HTML, CSS, JavaScript.">
<link rel="icon" href="images/favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="css/style.css">
<noscript>
Your browser does not support JavaScript!
</noscript>
</head>
The <body> tag defines the document’s OR web page’s body.
The <body> element contains all the contents of an HTML page, such as text,images,hyperlinks,tables, lists, etc.
<!DOCTYPE html>
<html>
<head>
<title>Title of the page</title>
</head>
<body>
The content of the page will goes here...
</body>
</html>
To add javascript file reference in the web page, use <script> tag.
<script type="text/javascript" src="js/core.js"></script>
Use <link> tag inside the <head></head and specify rel value as “shortcut icon”, you can display the page icon in the browser.
<link rel="shortcut icon" href="/image/favicon.ico"/>
<link href="css/style.css" type="text/css" rel="stylesheet" />
Bullet Point Lists (or Unordered Lists)
Unordered List:– the <ul> Tag
Bullet point lists are known as unordered lists (UL) because there is no numbering involved. The bulleted list uses the <ul> </ul> tag pair.
Code example:
<ul type="square">
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ul>
The type attribute determines what kind of bullet you want to display on the page.
The most common types are:
type=”circle” – an unfilled circle
type=”disc” – a filled circle
type=”square” – a filled square
If you use an iframe, you can load the contents of page1 and page2 in one html file.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Load multiple pages</title>
</head>
<body>
<iframe src="page1.html" border="0"></iframe>
<iframe src="page2.html" border="0"></iframe>
</body>
</html>
A Java virtual machine (JVM) is an abstract computing machine that enables a computer to run a Java program.
JVM coverts java bite code into machine language and executes it.
<form name="f1" method="post" action="result.php" onsubmit="return passwordvalidate()" >
Password: <input type="password" name="pass"><br/>
Retype Password: <input type="password" name="repass"><br/>
<input type="submit" value="Register">
</form>
<script type="text/javascript">
function passwordvalidate(){
var pass=document.f1.pass.value;
var repass=document.f1.repass.value;
if(pass==repass){
return true;
}
else{
alert("Password and Retype Password must be same!");
return false;
}
}
</script>
<form name="f1" method="post" action="result.php" onsubmit="return validate()" >
Full Name: <input type="text" name="name"><br/>
Password: <input type="password" name="pass"><br/>
<input type="submit" value="Register">
</form>
<script type="text/javascript">
function validate(){
var name=document.f1.name.value;
var pass=document.f1.pass.value;
if (name==null || name==""){
alert("Please enter your name.");
return false;
}else if(pass.length<6){
alert("Password must be at least 6 characters.");
return false;
}
}
</script>
<form name="f1" action="index.php">
Enter text here: <input type='text' name='q' />
<a href="javascript: Getdata()">Get Data</a>
</form>
<script type="text/javascript">
function Getdata()
{
document.f1.submit();
}
</script>
<script type="text/javascript" >
function contactform() {
var contactdata="Name:<input type='text' name='name'><br>Message:<br><textarea rows='3' cols='10'></textarea> <br><input type='submit' value='Submit'>";
document.getElementById('display').innerHTML=contactdata;
}
</script>
<form name="contact">
<input type="button" value="contact" onclick="contactform()">
<div id="display"></div>
</form>
{1}Collection is an interface of the Java Collection Framework. Most of the classes in Java Collection Framework inherit from this interface. List, Set and Queue are main sub interfaces of this interface.
{2}Collections is an utility class in java.util package. It consists of only static methods which are used to operate on objects of type Collection.