Britain did not declare war on Austria-Hungary directly. The United Kingdom entered World War I on 4 August 1914 after Germany invaded neutral Belgium, violating the 1839 Treaty of London that guaranteed Belgian neutrality. Britain had issued an ultimatum for German withdrawal; when it expired unanswered, Britain declared war on Germany.
The chain of events: Austria-Hungary declared war on Serbia (28 July 1914), Russia mobilized in support of Serbia, Germany declared war on Russia (1 August) and then on France (3 August). To execute the Schlieffen Plan, German forces invaded Belgium on 4 August, drawing Britain into the conflict. Britain's declaration of war on Austria-Hungary followed later (12 August), but the casus belli was Germany's violation of Belgian neutrality.