+ 2

What is and why do you use the "mark" attribute?

What is the "mark" attribute in C#? For example, in this script: namespace PlaygroundCodeQuestion { class Program { static void Main(string[] args) { //Here is written the mark attribute int mark = 85; //And even here if (mark < 50) { Console.WriteLine("You failed."); } else { Console.WriteLine("You passed."); } } } } I first thought it was a variable of some sort but after I've saw this was included on the SoloLearn attribute list. Am I saying something wrong or is it really "mark" an attribute??? Thanks for all the help 😀😀

10th Aug 2018, 4:57 PM
HackLoad™
HackLoad™ - avatar
3 Answers
+ 3
Well, clearly in the code above, mark is a variable name. But in HTML, <mark></mark> is really an element that highlights some text.
10th Aug 2018, 5:00 PM
Ledio Deda
Ledio Deda - avatar
+ 2
Yep, with HTML I've got no problems, I'm really far with that. ☺️😁 But as I've just started with C#, I don't understand what the mark attribute is standing for. Thanks for the help anyway! 👌👍
10th Aug 2018, 5:02 PM
HackLoad™
HackLoad™ - avatar
+ 1
Glad to help!!!✌
10th Aug 2018, 5:09 PM
Ledio Deda
Ledio Deda - avatar