Id attribute indicate the ID of element, it should be unique in whole content, different elements should have different ids. Id attribute is used along with style attribute and all properties are listed in body of id in curly brackets {}, it is denoted by putting hash # symbol before id name.
#idName{
property:value;
property:value;
property:value;
}
You can create any number of ids but with different names
You can give any name to id but do not forget to put hash symbol #
before id name;
Don't forget that id should be unique for every element.
Open notepad or any other text editor, follow the following points.
myid
save file with name task.html or task.htm and then open it using any browser and see results.
You can give id to any element.