infiniti logo
Home Students Lectures Assignments Announcements Join

Web Development

Learn To Code With InfinitiDEV

HTML

HTML provides basic structure for a web page.

HTML Example :
!DOCTYPE html >
html >
head >
title > HTML Page /title >
title >
/head >
body >
  
h1 > This is heading. /h1 >
p > This is paragraph. /p >
  
/body >
/html >

CSS

CSS is used to beautify the web page.

CSS Example :
body {
background-color : black ;
}
h1 {
color : white ;
text-align : center ;
}
p {
font-family : sans-serif ;
}
JavaScript Example :
<< /span> button onclick = "myFunction()" > Click Here >
<< /span> /button >
<< /span> script >
function myFunction() {
let x = document.getElementById("demo");
x.style.fontSize = "20px"; x.style.color = "red";
}
<< /span> /script >