What is the line label in css
Css middle row refers to the in-line label. The in-line label does not occupy an independent area. It only relies on its own font size and image size to support the structure. Generally, attributes such as width, height, alignment, etc. cannot be set. It is often used to control the page. The style of Chinese text; common inline tags include a, strong, b, em, i, del, s, ins, u, and span tags, among which the span tag is the most typical inline element.
The operating environment of this tutorial: Windows 10 system, CSS3 version, DELL G3 computer
What is the label in the css line?
CSS(3)---Block-level tags, inline tags, inline block tags
Block-level tags, inline tags, inline block tags ## There are three types of tag elements in
#html: Block-level tag,
Inline tag,
Inline block tag.
1. Overview
1. Block-level tagsConcept Each block element usually occupies a whole line by itself Or multiple entire lines, you can set width, height, alignment and other attributes for it, which is often used to build
web page layout and web page structure.
1) Block-level tag features
1、每个块级元素都从新的一行开始,并且其后的元素也另起一行(独自占据一整行或多整行) 2、元素的高度、宽度、行高以及顶和底边距都可设置。 3、宽度缺省是它的容器的100%,除非设定一个宽度。 4、它可以容纳行内标签和其他块级标签。
Note
Onlytext can form a paragraph, so Block-level elements cannot be placed inside p. Similarly, there are these tags h1, h2, h3, h4, h5, h6, and dt. They are all text-type block-level tags, and other block-level elements cannot be placed inside them.
2) Common block-level tags
div, h1~h6, p, hr, form, ul, dl, ol, li among them The div tag is the most typical block element.
Concept Inline tags do not occupy an independent area. They only rely on their own font size and image size to support the structure. Generally, the width and width cannot be set. Attributes such as height and alignment are often used to
control the style of text in the page.
1) Features of inline tags
1、和相邻行内标签在一行上 2、高,行高及外边距和内边距不可改变; 3、默认宽度就是它本身内容的宽度。 4、设置margin只有 左右margin 有效,上下无效。设置padding只有 左右padding 有效,上下则无效。 5、行内元素只能容纳文本或则其他行内元素。(a特殊: a标签可以放div块级标签,同时a标签里不能再放a标签)
2) Common inline tags
a, strong, b, em, i, del, s, ins, u, span Among them, the span tag is the most typical inline element.
1) Characteristics of inline block elements
1、和相邻行内元素(行内块)在一行上,但是之间会有空白缝隙。 2、默认宽度就是它本身内容的宽度。 3、高度,行高、外边距以及内边距都可以控制。
img, input, td
块转行内:display:inline; 行内转块:display:block; 块、行内元素转换为行内块: display: inline-block;
2. Test
Here is a comprehensive small test: complete code<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>块级标签、行内标签、行内块标签</title> <style> div,span,input { /*为了方便查看,这里给这些元素加边框*/ border-style: solid; border-width: 1px; border-color: red; } div { width: 100px; /* 对块级标签、行内标签、行内块标签都设置宽和高*/ height: 100px; } span { width: 100px; height: 100px; } input { width: 100px; height: 100px; } </style> </head> <body> <div>div</div> <div>===div===</div> <span>span</span> <span>===span===</span> <input type="text" value="input"> <input type="text" value="===input==="> </body> </html>
Running results
css video tutorial"
The above is the detailed content of What is the line label in css. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

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

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics











Using Bootstrap in Vue.js is divided into five steps: Install Bootstrap. Import Bootstrap in main.js. Use the Bootstrap component directly in the template. Optional: Custom style. Optional: Use plug-ins.

WebdevelopmentreliesonHTML,CSS,andJavaScript:1)HTMLstructurescontent,2)CSSstylesit,and3)JavaScriptaddsinteractivity,formingthebasisofmodernwebexperiences.

HTML defines the web structure, CSS is responsible for style and layout, and JavaScript gives dynamic interaction. The three perform their duties in web development and jointly build a colorful website.

There are several ways to insert images in Bootstrap: insert images directly, using the HTML img tag. With the Bootstrap image component, you can provide responsive images and more styles. Set the image size, use the img-fluid class to make the image adaptable. Set the border, using the img-bordered class. Set the rounded corners and use the img-rounded class. Set the shadow, use the shadow class. Resize and position the image, using CSS style. Using the background image, use the background-image CSS property.

There are two ways to create a Bootstrap split line: using the tag, which creates a horizontal split line. Use the CSS border property to create custom style split lines.

To set up the Bootstrap framework, you need to follow these steps: 1. Reference the Bootstrap file via CDN; 2. Download and host the file on your own server; 3. Include the Bootstrap file in HTML; 4. Compile Sass/Less as needed; 5. Import a custom file (optional). Once setup is complete, you can use Bootstrap's grid systems, components, and styles to create responsive websites and applications.

To adjust the size of elements in Bootstrap, you can use the dimension class, which includes: adjusting width: .col-, .w-, .mw-adjust height: .h-, .min-h-, .max-h-

How to use the Bootstrap button? Introduce Bootstrap CSS to create button elements and add Bootstrap button class to add button text
