如何在 HTML 中獲取與 http-equiv 或 name 屬性相關的值?
在 HTML 中使用 content 屬性獲取與 http-equiv 或 name 屬性相關的值。
示例
你可以嘗試執行以下程式碼來實現 content 屬性 −
<!DOCTYPE html> <html> <head> <meta name = "description" content = "Learning content and videos"> </head> <body> <p>This is demo text.</p> </body> </html>
廣告
資料結構
網路
關係資料庫管理系統(RDBMS)
作業系統
Java
iOS
HTML
CSS
Android
Python
C 程式設計
C++
C#
MongoDB
MySQL
Javascript
PHP