Home  >  Article  >  Web Front-end  >  Understand the usage of html tag

Understand the usage of html tag

一个新手
一个新手Original
2017-10-24 11:37:513846browse


HTML SPAN tag element syntax and usage (45a2772a6b6107b401db3c9b82c049c2 tag tutorial)

  • html span tag directory

  1. Syntax and structure

  2. span tag usage instructions

  3. span tag application case

  4. Instance screenshot

  5. Summary

##1. span syntax and structure -

TOP
<span>内容</span>

2. Instructions for using the span tag -

TOP

1), re-cut the layout in p+CSS In construction technology, in addition to the p tag,

span tag layout2), span itself has nothing special, and usually the layout can use this tag layout.
3), they can also achieve the beautification effect we want by setting different styles on the span tag object.
4), characteristics, usually a pair of spans without any style, the height and width are adaptive content, the distance space occupied by this label will be as large as the capacity.

3. Span tag use case -

TOP
<span>我是php中文网!</span> <span>php中文网网址是www.php.cn </span>

The above is the detailed content of Understand the usage of html tag. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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
Previous article:Understand the tagNext article:Understand the tag