html api examples