Element classification

Element Classification

Before explaining CSS layout, we need to know some knowledge in advance. In CSS, label elements in html are generally divided into three different types: block Shape elements, inline elements (also called inline elements) and inline block elements.

Commonly used block elements are:

<div>, <p>, <h1>...<h6>, <ol>, <ul> , <dl>, <table>, <address>, <blockquote>, <form>

Commonly used inline elements are:

<a>,< ;span>, <br>, <i>, <em>, <strong>, <label>, <q>, <var>, <cite>, <code>

Commonly used inline block elements are:

<img>, <input>


Continuing Learning
||
1
2
3
4
5
6
7
8
9
10
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Title</title>
</head>
<body>
PHP
</body>
</html>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
submitReset Code
图片放大关闭