How to get the HTML source of an element in Selenium

In all languages, get the innerHTML attribute of the element.

Java

element.getAttribute("innerHTML");

Python

element.get_attribute('innerHTML')

C#

element.GetAttribute("innerHTML");