Home Web Front-end Front-end Q&A HTML5 tags that cannot wrap

HTML5 tags that cannot wrap

Jul 29, 2022 pm 05:33 PM
html5

html5 cannot wrap tags: 1. a, defines a hyperlink, used to link from one page to another; 2. abbr, used to represent an abbreviation or acronym; 3. b , defines bold text; 4. bdo, defines text direction; 5. cite, defines the title of the work; 6. em, used to present emphasized text; 7. i, defines italics; 8. img, defines HTML The image in the page; 9. input, defines the input box; 10. sub, defines the subscript text; 11. sup, defines the superscript text.

HTML5 tags that cannot wrap

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

Tag elements in HTML are generally divided into three different types: block elements, inline elements, and inline block elements.

Inline elements and inline block elements cannot be wrapped.

Characteristics of inline elements:

1. Displayed in one line with other inline elements from left to right, without automatic line wrapping. The default arrangement is From left to right;

2. You cannot directly control the width, height and related css properties of the box model, but you can directly set the left and right values ​​​​of the inner and outer margins

3. Inline elements The width and height are determined by the size of the content (text, pictures, etc.)

4. Inline elements can only accommodate text or other inline elements (please note here that do not nest in inline elements) Block-level elements)

Because of its own characteristics, we usually use inline elements to build text and small icons (small structures).

Characteristics of inline block elements:

1. They are on the same line as other elements and will not wrap automatically. The default arrangement is from left to right;

2. The height, width, line height, top and bottom margins of the element can be set.

Inline block elements combine the characteristics of inline elements and block elements, but each has its own trade-offs. Therefore, inline block elements are used more often due to their characteristics in daily use, and are useful in many aspects.

So html cannot wrap tag elements (inline elements and inline block elements):

  • a - Define hyperlinks for starting from One page links to another page.

  • abbr - used to represent an abbreviation or acronym, such as "WWW" or "NATO".

  • acronym - Defines an acronym (Not supported in HTML5).

  • b - Defines bold text.

  • bdo - Define the text direction, which can override the default text direction.

  • big - defines large text (

    HTML5 does not support ).

  • cite - A quote that defines the title of a work (such as a book, song, movie, television show, painting, sculpture, etc.).

  • code - computer code (required when citing source code);

  • dfn - is a phrase tag used to define a definition project .

  • del - Text that has been deleted in the document


  • em - Used to render highlighted text.

  • font - Specifies the font, font size, and font color of the text (

    HTML5 does not support ).

  • i - italic;

  • #img - Defines an image in an HTML page.

  • input - input box;

  • kbd - define keyboard text;

  • label - table Tags;

  • ##q - short quote;
  • s - underscore (not recommended);
  • samp - Defining sample computer code;
  • select - Project selection;
  • small - Small font text;
  • span - commonly used inline container, defines blocks within text;
  • strike - underline, defines strikethrough text (
  • HTML5 does not support

    )

  • strong - bold emphasis;
  • sub - subscript;
  • sup - superscript;
  • textarea - multi-line text input box;
  • tt - telex text;
  • u - underscore;
  • var - defines variables.
  • [Recommended courses:
HTML5 video tutorial

, web front-end]

The above is the detailed content of HTML5 tags that cannot wrap. For more information, please follow other related articles on the PHP Chinese website!

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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Table Border in HTML Table Border in HTML Sep 04, 2024 pm 04:49 PM

Guide to Table Border in HTML. Here we discuss multiple ways for defining table-border with examples of the Table Border in HTML.

HTML margin-left HTML margin-left Sep 04, 2024 pm 04:48 PM

Guide to HTML margin-left. Here we discuss a brief overview on HTML margin-left and its Examples along with its Code Implementation.

Nested Table in HTML Nested Table in HTML Sep 04, 2024 pm 04:49 PM

This is a guide to Nested Table in HTML. Here we discuss how to create a table within the table along with the respective examples.

HTML Table Layout HTML Table Layout Sep 04, 2024 pm 04:54 PM

Guide to HTML Table Layout. Here we discuss the Values of HTML Table Layout along with the examples and outputs n detail.

HTML Input Placeholder HTML Input Placeholder Sep 04, 2024 pm 04:54 PM

Guide to HTML Input Placeholder. Here we discuss the Examples of HTML Input Placeholder along with the codes and outputs.

Moving Text in HTML Moving Text in HTML Sep 04, 2024 pm 04:45 PM

Guide to Moving Text in HTML. Here we discuss an introduction, how marquee tag work with syntax and examples to implement.

HTML Ordered List HTML Ordered List Sep 04, 2024 pm 04:43 PM

Guide to the HTML Ordered List. Here we also discuss introduction of HTML Ordered list and types along with their example respectively

HTML onclick Button HTML onclick Button Sep 04, 2024 pm 04:49 PM

Guide to HTML onclick Button. Here we discuss their introduction, working, examples and onclick Event in various events respectively.

See all articles