Current location - Education and Training Encyclopedia - Graduation thesis - Div thesis
Div thesis
use

div:

This label has always been the one we have seen and used the most. It has no semantics in itself and is used as a layout and style label.

Part:

Similar to div, but it has further semantics. As the theme content, a chapter usually has a title. ? The typical application scenario of section should be the chapter of an article, the tab page in the tab dialog box, or the numbered part of a paper.

Article:

Article is a special section tag, which has more explicit semantics than section, and it represents an independent and complete related content block.

differentiate

The semantics of div, section and article are all from scratch and gradually enhanced. Div has no semantics and is only used as a tag for styling or scripting.

For a topic, section is applicable. If this content can be taken out of context as a complete and independent content, article is applicable.

In principle, you can use section when you use article, but in fact, if it is more appropriate to use article, don't use section.

Extended data

Technical points

& lt video & gt tag

Definition and usage:

& lt/video & gt; Tags define videos, such as movie clips or other video streams.

& lt audio & gt tag

Definition and usage

& lt/audio & gt; Tags define sounds, such as music or other audio streams.

Definition and usage:

< Canvas > Tags define graphics, such as charts and other images.

The canvas element of HTML5 uses JavaScript to draw images on web pages.

Canvas is a rectangular area, and you can control every pixel of it.

Canvas has many ways to draw paths, rectangles, circles, characters and add images.