• Visit https://remix.ethereum.org
  • You have menu bars on the left side
  • Click on files icon. Create a file called HelloWorld.sol inside contracts folder
// version of solidity greater than 5
pragma solidity ^0.5.10;

// write a contract using contract keyword
contract HelloWorld {
    // data type string
    string myName = 'Ryan';

    // write a function that returns name
    function getMyName() returns(string) {
        return myName;
    }
}

Now try to compile the solidity code by clicking on the left sidebar S icon

You get syntax error about visibility.