The most viewed items
What is Server?
Server is a computer that stores data and share with its clients. There are so many server operating systems such as Ubuntu, Redhat, CentOS, Fedora, Windows, etc,. In Windows Server, there are so many versions:
1. Windows Server 2003
2. Windows Server 2008
3. Windows Server 2012
4. Windows Server 2016
5. Windows Server 2019
Windows Server provides so many features such as DNS, DHCP, Active Directory (AD), File Sharing, Internet Information Service (IIS), Server Clustering, etc,.
<people>
<person>
<name>Thet Naing Win</name>
<dob>20.03.1987</dob>
<address>Yangon</address>
</person>
<person>
<name>Su Su</name>
<dob>01.10.1990</dob>
<address>Mandalay</address>
</person>
<person>
<name>Nu Nu</name>
<dob>02.02.1980</dob>
<address>Yangon</address>
</person>
</people>
<!DOCTYPE html>
<html>
<head>
<title>TNW (Web Service & ICT Solutions)</title>
<style>
p{
color: red;
font-weight: bold;
}
</style>
</head>
<body>
<p>Page 1</p>
<p>Page 2</p>
</body>
</html>
Write the above codes and save it as test.html in somewhere. Try to open that file by double clicking and you will find it working.
HTML development can be done in notepad that comes along with Windows, text editors, IDE Software and WYSIWYG (What You See Is What You Get).
HTML is Hypertext Markup Language. It is a standard markup language. It describes the structure of the web page and defines the contents. It is a language should be firstly learned for those who start to learn web programming.
Example 1
<html>
<head>
<title>JS Constant</title>
</head>
<body>
<p id = "demo"></p>
<script>
const x = (x, y) => x * y;
document.getElementById("demo").innerHTML = x(8, 8);
</script>
</body>
</html>
Example 2
<html>
<head>
<title>JS Constant</title>
</head>
<body>
<p id = "demo"></p>
<script>
const x = (x, y, z) => (x + y + z);
document.getElementById("demo").innerHTML = x (4, 5, 6);
</script>
</body>
</html>
/*
//the first character is letter
var myName = "I am Thet Naing Win.";
document.write(myName);
//the first character is underscore
var _myAge = "I am 35 now.";
document.write(_myAge);
//the first character is number. this is not valid naming.
var 1_myAge = "I am 35 now.";
document.write(1_myAge);
var myName1 = "I am Thet Naing Win.";
var myAge1 = "I am 35 now.";
document.write(myName1);
document.write(myAge1);
//we can not use punctuation marks
var myName, = "I am Thet Naing Win.";
document.write(myName,);
var _myAge = "I am 35 now.";
document.write(_myAge);
//proper variable name
var myNmae = "I am Thet Naing Win.";
document.write(myNmae);
//we can use very long variable name. but this is improper variable name
//so we should care in variable naming
var iamthetnaing = "I am Thet Naing Win.";
document.write(iamthetnaing);
var while = "I am Thet Naing Win.";
document.write(while); */
/*var a = "I am Thet Naing Win.";
let b = "I am from Myanmar.";
const c = "I currently stay in Yangon.";
document.write(a);
document.write(b);
document.write(c);
const a = "I am Thet Naing Win.";
const a = "Who are you?";
document.write(a);
*/
var tnwGlobal = "I am TNW Global."; // global variable
function tnwOne(){
var tnwLocal = "I am TNW Local."; //local variable
document.getElementById("global").innerHTML = tnwGlobal;
document.getElementById("local").innerHTML = tnwLocal;
}
function tnwTwo(){
document.getElementById("global").innerHTML = tnwGlobal;
document.getElementById("local").innerHTML = tnwLocal; //local variable declared in tnwOne
}
/*var person = {
firstname : "Thet",
lastname : "Naing"
};
function tnwFun(){
document.getElementById("demo").innerHTML = person.lastname;
}*/
var person = {
firstname : "Thet",
lastname : "Naing",
fullname : function(){
return person.firstname+ " " +person.lastname;
}
}
function tnwFun(){
document.getElementById("demo").innerHTML = person.fullname();
}
var a = "I am Thet Naing Win."; // Statement one
var b = "I am from Myanmar."; // Statement two
var c = "I currently stay in Yangon."; // Statement three
/*
document.write(a);
document.write(b);
document.write(c);*/
function tnwFun(){
document.getElementById("demo1").innerHTML = a;
document.getElementById("demo2").innerHTML = b;
document.getElementById("demo3").innerHTML = c;
}
var myObj = {tree: 'green', sky: 'blue', cloud: 'white'};
myObj['sky'] = 'gray'; //here i use ctrl+s to save
var myColor = myObj['sky']; //bracket notation
document.write(myColor);
var myObj = {tree : "green", sky : "blue", cloud : "white"};
myObj.cloud = "gray";
var myColor = myObj.cloud;
document.write(myColor);