Home Web Front-end HTML Tutorial Summary of block-level elements, inline elements and variable elements_HTML/Xhtml_Web page production

Summary of block-level elements, inline elements and variable elements_HTML/Xhtml_Web page production

May 16, 2016 pm 04:37 PM
inline elements block-level elements

block element

p - paragraph

pre - formatted text

table - table

ol - sort form

ul - unsorted list

address - address

blockquote - block quote

center - center align block

div - Common block level

dl - definition list

fieldset - form control group

form - interactive form

h1 - headline

h2 - subtitle

h3 - level 3 title

h4 - level 4 title

h5 - level 5 title

h6 - level 6 title

hr - horizontal separator line

isindex - input prompt

noframes - frames optional content

noscript - optional script content

Inline element

li - list item

a - anchor

abbr - abbreviation

acronym - first word

b - bold (not recommended)

bdo - bidi override

big - big font

br - line break

cite - Reference

code - Computer code

dfn - Define field

em - Emphasis

font - Font setting

i - italic

img - image

input - input box

kbd - define keyboard text

label - table label

q - short Quote

s - underscore

samp - definition example computer code

select - item selection

small - small font text

span - commonly used inline container, defining blocks within text

strike - underline

strong - bold emphasis

sub - subscript

sup - superscript

textarea - multi-line text input box

tt - telex text

u - underline

var - define variables

Variable elements

A variable element is a block element or an inline element determined by the context.

applet - java applet

button - button

del - delete text

iframe - inline frame

ins - inserted text

map - image block (map)

object - object object

script - client script
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

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

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)

What are inline elements and block-level elements? What are inline elements and block-level elements? Aug 17, 2023 am 11:33 AM

Inline elements include div, p, h1-h6, ul, ol, li, table, form, etc.; block-level elements include span, a, img, strong, em, input, label, etc. The characteristics of the two elements: 1. Inline elements will occupy a row, automatically fill the width of the parent container, can set width, height, inner and outer margins and other attributes, and can contain other block-level elements and inline elements; 2. Inline elements will not It will occupy an exclusive line, the width and height are determined by the content, and the inner and outer margins only affect the arrangement of the elements themselves, etc.

The difference between inline elements and block-level elements: an in-depth understanding of element classification in HTML The difference between inline elements and block-level elements: an in-depth understanding of element classification in HTML Dec 23, 2023 am 10:01 AM

The difference between inline elements and block-level elements: In-depth understanding of the classification of elements in HTML In HTML, elements can be divided into two categories: inline elements and block-level elements. Understanding their differences is very important to correctly master the layout and style of HTML. This article will provide an in-depth understanding of the characteristics of inline elements and block-level elements, and provide specific code examples. Inline elements Inline elements are elements that are displayed inline by default in HTML documents. They do not occupy an entire row, but appear closely within a row based on how the document flow is arranged. Common in the industry

What is the difference between inline elements and block-level elements? What is the difference between inline elements and block-level elements? Oct 16, 2023 am 09:51 AM

There are five differences between inline elements and block-level elements: "box model", "arrangement", "content display", "relative position" and "default size": 1. Inline elements do not generate independent boxes, width and height Determined by the content, block-level elements will generate an independent rectangular frame, and attributes such as width, height, margins, and padding can be set; 2. Inline elements are arranged horizontally on the same line, while block-level elements will be pressed from top to bottom. Arrange in order; 3. Inline elements cannot contain block-level elements, while block-level elements can contain other block-level elements and inline elements.

What are the inline elements and block-level elements in html? What are the inline elements and block-level elements in html? Oct 16, 2023 am 09:57 AM

Commonly used inline elements and block-level elements in HTML are: 1. Block-level elements include semantics such as <div>, <p>, <ul>, <ol>, <li>, <h1>~<h6>, and <header>. tags; 2. Inline elements include tags such as <span>, <a>, <strong>, <em>, <img>, and <input>.

What is the difference between inline elements and block-level elements? What is the difference between inline elements and block-level elements? Aug 18, 2023 pm 05:02 PM

The differences between inline elements and block-level elements are: 1. Inline elements will not occupy an exclusive line, while block-level elements will occupy an exclusive line; 2. The width of an inline element is determined by its content, while the width of a block-level element defaults to that of its parent element. 100%; 3. The box model of inline elements mainly includes horizontal padding, margins and borders, in each direction.

What are inline and block-level elements? What are inline and block-level elements? Nov 24, 2023 pm 01:57 PM

Inline elements include a, span, strong, b, em, i, label, img, input, select, textarea, button, abbr, cite, code, big, small, sub, sup, etc. Block-level elements include div, p, h1-h6, form, ul, ol, dl, dt, dd, li, table, tr, td, th, hr, blockquote, address, menu, pre, etc.

Common examples of CSS inline and block-level elements: giving you a deeper understanding of them Common examples of CSS inline and block-level elements: giving you a deeper understanding of them Dec 23, 2023 am 11:58 AM

Common examples of CSS inline elements and block-level elements: To give you a deeper understanding of them, specific code examples are needed Introduction: In CSS, inline elements and block-level elements are two element types we often encounter. For web page layout and style design, it is very important to understand the difference and usage of inline elements and block-level elements. This article will introduce inline elements and block-level elements in CSS with specific code examples to help readers understand their characteristics and usage more deeply. 1. Inline elements Inline elements (inlineelem

How to correctly use block-level elements and inline elements to achieve web page layout effects How to correctly use block-level elements and inline elements to achieve web page layout effects Jan 07, 2024 am 08:10 AM

How to correctly use block-level elements and inline elements to achieve web page layout effects. When laying out web pages, we often use block-level elements and inline elements. Block-level elements and inline elements are two basic element types in HTML, and they play different roles in web page layout. This article will introduce in detail how to correctly use block-level elements and inline elements to achieve web page layout effects, and provide specific code examples. 1. Characteristics and application scenarios of block-level elements Block-level elements have the following characteristics: Each block-level element will occupy its own line, that is, it will wrap automatically. block level element

See all articles