HTML使用input上傳檔案時,若想要限制檔案的類型時可以使用accept屬性。
指定副檔名
指定副檔名必須為csv
<input type="file" name="file" accept=".csv">
指定副檔名必須為pdf
<input type="file" name="file" accept=".pdf">
指定副檔名為一個以上時,可以使用逗號分開
<input type="file" name="file" accept=".csv,.pdf">
指定為某種type
圖片類型:
<input type="file" name="file" accept="image/*">
HTML類型:
<input type="file" name="file" accept="text/html">
影片類型:
<input type="file" name="file" accept="video/*">
音訊類型
<input type="file" name="file" accept="audio/*">
<a>標籤為超連結,是HTML標籤中最常使用到的標籤 href屬性為目標位置,可輸入絕對位置或相對位置 比較特別的是target屬性,設定連結的框架或視窗
程式系統串接ChatGPT API共需要三組金鑰,分別為Organization ID、Project ID、API Key,詳細申請步驟。
TLS 1.0 存在漏洞,在Acunetix 弱點掃描中如果沒有停用TLS 1.0將會被列為中度風險,以apache為例教學關閉 TLS 1.0
reCAPTCHA是目前針對防範機器人最為有效的方式,廣泛使用在各政府機關、民間網站的網頁設計中,此篇文章教學申請取得金鑰步驟。
挑選適合的網站字型,可以為您的網站質感加分不少,到底應該如何挑選合適的字型呢?接下來介紹由免費中文字型--思源黑體。