what is <!-- --> in html code example

Example 1: what is html

HYPER-TEXT MARKUP LANGUAGE
Is the standardised markup language (a subset of XML) that 
defines the layout of a webpage. 
HTML has no functional properties, other languages such as 
JavaScript must be used in order to manipulate the layout
and perform HTTP requests.
CSS (Cascading Style Sheets) is commonly used to style the
elements in the layout.

Example 2: . and # in html

<!DOCTYPE html>
<html>
<head>
<style>
.classname {
  background-color: green;
  color: white;
}
#idname {
  background-color: pink;
  color: white;
}
</style>
</head>
<body>
<div class="classname">I am  green colour<div>
<div id="idname">I am  pink colour</div>
</body>
</html>

Example 3: # in html

# in CSS means your looking at an ID so 
<div class="ExampleClass" id="ExampleID"></div>

#ExampleID would reference the ID
.ExampleClass would reference the class

Tags: