Article From:

Edit this page


hLabels belong to block – level elements:

  1. A single line

Do not change the font size of the same line with title tags, usually for articles or website titles.

<!DOCTYPE html>
<html lang="en">
    <meta charset="UTF-8">
    <title>H1-h6 of common labels</title>
    <h1>Title 1</h1>
    <h2>Title 2</h2>
    <h3>Title 4</h3>
    <h4>Title 4</h4>
    <h5>Title 4</h5>
    <h6>Title 4</h6>

View Code

Paragraph label p

  1.  Like normal text, you can set the current paragraph style by using CSS.
  2. Block – level elements, so it’s a single line

Hyperlink label a

Link the current location text or image to other pages, files or images.

  • href=””,Open the specified page
  • target=”_blank”Another page opens, _self, the default value, and the current page opens.
  • title=”The title “after the mouse moves up”
  • href=”Download file path “
  • href=””Open the default mailbox tool to send mail
  • href=”#”Jump to the top of the page
  • href=”#Label ID “jump to the specified label
  • href=”javascript:”Eat the default action of the a tag, execute a JavaScript code, such as javascript:alert (MSG). Javascript: means that nothing is executed. This method can cancel the default action of a tags.

Text content modified label

  1. <b></b>:Thickening
  2. <em></em>,<strong></strong>:Used to emphasize a few words
  3. <i></i>:Italic
  4. <u></u>:Underline
  5. <s></s>:Deleting line
  6. <sup></sup>:Superscript
  7. <sub></sub>:subscript


Link of this Article: Body internal label for HTML label

Leave a Reply

Your email address will not be published. Required fields are marked *