<!DOCTYPE html> <html> <head> <title>我的网页</title> </head> <body> <h1>欢迎来到我的网页</h1> <p>这里是一些段落文本。</p> </body> </html>
<!DOCTYPE html>
: This is the document type declaration of HTML. <html>
: This is the starting tag of HTML, which represents the entire HTML document. <head>
: This is the HTML head tag, which is used to embed metadata in web pages, such as web page titles, CSS styles, and JavaScript scripts. <title>
: This is the web page title tag, which is used to define the title of the web page and is displayed on the browser tab. <body>
: This is the body tag of the web page, which is used to contain the main content of the web page, such as text, pictures, tables, links, etc. <h1>
: This is the HTML title tag, which is used to define the first-level title. <p>
: This is the HTML paragraph tag, which is used to define paragraph text. The above is the detailed content of How to type html. For more information, please follow other related articles on the PHP Chinese website!