Common HTML tags

1. Title tags

<h1> </h1>
<h2> </h2>
<h6> </h6>
Copy the code

2. Paragraph labels

<p> </p>
Copy the code

3. Horizontal label

<hr/> is a single labelCopy the code

4. Line feed labels

<br/>
Copy the code

5. Div and SPAN tags

A <div> </div> line displays only one div tag. A <span> </ SPAN > line displays multiple SPAN tagsCopy the code

6. Text formatting labels

The label According to the effect
<b> </b><strong> </strong> Text is shown in bold
<i> </i><em></em> Text is presented in italics
<s></s><del></del> Text is displayed in strikeout mode
<u></u><ins></ins> Text is underlined

7. Image tag IMG (emphasis)

<img SRC =" image URL">Copy the code
attribute Attribute values describe
src URL Path of image
alt The text Replacement text for images that cannot be displayed
title The text What is displayed when the mouse is hovering
width pixel Sets the image width
height pixel Sets the height of the image
border digital Sets the width of the image border

8. Link labels

<a href=" target "target=" target "> text or image </a>Copy the code

Target: specifies the opening mode of the linked page. The value can be self or blank, where self is the default and blank is the opening mode in a new window.

9. Comment labels

<! -- Comment tag -->Copy the code

The path

Directory Relative path and absolute path of the root directory of a folder

Same order path

<img src="baidu.gif"/>
Copy the code

Next level path

<img src="images/baidu.jpg"/>
Copy the code

Upper path

<img src=".. /baidu.gif"/>Copy the code

An absolute path

<img SRC ="C:\Desktop\ case \ biduo.gif "/>Copy the code

Tabular list