This time I will bring you a summary of H5 block-level tags. How to use H5 block-level tags? What are theprecautionswhen using H5 block-level tags? The following is a practical case, let’s take a look.
Block-level elements, simply put, are elements that occupy their own line. Its characteristics:
① always starts on a new line;
② height, line height andouter marginandinner margincan be used Control;
③The width defaults to 100% of its container, unless a width is set.
④ It can accommodateinline elementsand other block elements
The summary code is as follows:
I believe you have mastered the method after reading these cases , for more exciting content, please pay attention to other related articles on the php Chinese website!
Related reading:
How to create a drag-and-drop effect in H5
About how old versions of browsers are not compatible with H5 and C3 Method
#How to draw graphics using H5’s CanvasAPI
The above is the detailed content of H5 block-level tag summary. For more information, please follow other related articles on the PHP Chinese website!