Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
HTML page for simple Microsoft Azure Cognitive Services example for image description
<!DOCTYPE html>
<title>Cognitive Services Sample</title>
<script src=""></script>
<script src="imageAnalysis.js"></script>
<!-- Insert text input for entering the subscription key, with id="subscriptionKey" -->
<!-- Use a label and an input element -->
<label for="subscriptionKey">Enter your cloud subscription key:</label>
<input type="text" name="subscriptionKey" id="subscriptionKey" required />
<!-- Insert text input for the image URL, with id="inputImage" -->
<!-- Use a label and an input element -->
<label for="inputImage">Enter image URL:</label>
<input type="text" name="inputImage" id="inputImage" required />
<!-- Insert a button that executes the JavaScript function analyzeButtonClick() when clicked -->
<button onclick="analyzeButtonClick()">Analyze Image</button>
<!-- Insert textarea with id="responseTextArea" for text output -->
<textarea id="responseTextArea"></textarea>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment