What is html segmentation tag

醉折花枝作酒筹
Release: 2023-01-06 11:16:27
Original
4606 people have browsed it

In HTML, the segmentation tag is the p tag. When a large line break is needed for segmentation, add "

" before the content and add "

" after the content to achieve article change. paragraph. The p element will automatically create some white space before and after it. The browser will automatically add these spaces, or it can be specified in the style sheet.

What is html segmentation tag

The operating environment of this tutorial: Windows 7 system, CSS3&&HTML5 version, Dell G3 computer.

Tags define paragraphs.

The element will automatically create some white space before and after it. The browser adds these spaces automatically, or you can specify them in your stylesheet.

tag supports global attributes and event attributes in HTML.

Attributes:

What is html segmentation tag

Instance:

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <p>这个段落 
      在源代码中 
      包含许多行 
      但是浏览器 
      忽略了它们。</p>

    <p>这个段落 
      在源代码 中 
      包含 许多行 但是
       浏览器 忽略了
        它们。</p>

    <p>
      段落的行数依赖于浏览器窗口的大小。如果调节浏览器窗口的大小,将改变段落中的行数。
    </p>
  </body>
</html>
Copy after login

Effect:

What is html segmentation tag

##Extended information:

html global attributes

What is html segmentation tag

HTML event attributes

HTML has the ability to trigger events in the browser An action, such as starting JavaScript when the user clicks on an element.

  • Window event attribute, event triggered for the window object (applied to the tag)

  • Form event, generated by the HTML form Events triggered by actions (applied to almost all HTML elements, but most commonly used in form elements)

  • Keyboard event

  • Mouse event, Events triggered by mouse or similar user actions

  • Media events, events triggered by media (such as videos, images, and audio) (applies to all HTML elements, but is common in media elements , such as
Recommended learning:

html video tutorial

The above is the detailed content of What is html segmentation tag. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template