Detailed explanation of the use of HTML header tags

Detailed explanation of the use of HTML header tags

HTML consists of two parts: head and body

** The tag in the head is the head tag

** Title tag: indicates the content displayed on the label

** meta tag: set some relevant content of the page (rarely used)

<meta name="keywords" content="熊貓,金絲猴,恐龍"/>

<meta http-equiv="refresh" content="3;url=01-hello.html"/>

** base tag: set the basic settings of the hyperlink

- You can set the opening method of hyperlinks uniformly

<base target="_blank"/>

** link tag: import external files

** Used in css, you can use the link tag to introduce the css file

Full code:

<html>
    <head>
        <title>World</title>
        <meta name="keywords" content="Panda, golden monkey, dinosaur"/>
        <!--<meta http-equiv="refresh" content="3;url=01-hello.html"/>-->
        <base target="_blank"/>
    </head>
    <body>
        <h3>Header Tag</h3>
        <a href="01-hello.html">Hyperlink 1</a>
        <a href="01-hello.html">Hyperlink 2</a>
        <a href="01-hello.html">Hyperlink 3</a>
    </body>
</html>

Summarize

The above is the use of HTML header tags introduced by the editor. I hope it will be helpful to everyone. If you have any questions, please leave me a message and the editor will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website!

<<:  Detailed explanation of how to use Vue+element to implement the tag at the top of the page

>>:  Summary of CSS front-end knowledge points (must read)

Recommend

Detailed explanation of the use and precautions of crontab under Linux

Crontab is a command used to set up periodic exec...

Detailed explanation of HTML table inline format

Inline format <colgroup>...</colgroup>...

Vue plugin error: Vue.js is detected on this page. Problem solved

Vue plugin reports an error: Vue.js is detected o...

Detailed explanation of MySQL monitoring tool mysql-monitor

1. Overview mysql-monitor MYSQL monitoring tool, ...

Two-hour introductory Docker tutorial

Table of contents 1.0 Introduction 2.0 Docker Ins...

Lambda expression principles and examples

Lambda Expressions Lambda expressions, also known...

Sample code of uniapp vue and nvue carousel components

The vue part is as follows: <template> <...

How to prevent website content from being included in search engines

Usually the goal of building a website is to have...

Solution for Baidu site search not supporting https (tested)

Recently, https has been enabled on the mobile ph...

Small program to implement a simple calculator

This article example shares the specific code of ...

Detailed explanation of nginx configuration file interpretation

The nginx configuration file is mainly divided in...

How to use the Linux basename command

01. Command Overview basename - strip directories...