当前位置:网站首页>Advantages of semantic tags and block level inline elements
Advantages of semantic tags and block level inline elements
2022-07-04 20:44:00 【Big chicken legs are best】
The code structure is clear , Easy to read , It's good for team development .
Facilitate analysis of other equipment ( Such as screen reader 、 Blind reader 、 Mobile devices ) Rendering web pages in a semantic way .
It's good for SEO (SEO).
Differences between block level inline elements
1, Block level elements wrap automatically
2, The height and width of block level elements can be set , Inline elements cannot , It can only be supported by its child elements
conversion
1.display:inline;// Convert block level elements into row level elements , At this time, the width and height set by the block level element are invalid
2.display:block;// Turn row level elements into block level elements , At this time, the original row level element will become a block level element with only one row , At the same time, width and height can be set
3.display:inline-block;// Turn row level elements into block level elements , Don't monopolize a line , Width and height can be set
边栏推荐
- 如何让你的小游戏适配不同尺寸的手机屏幕
- go语言笔记(4)go常用管理命令
- Detailed explanation of Audi EDI invoice message
- Flet教程之 05 OutlinedButton基础入门(教程含源码)
- Six stones programming: about code, there are six triumphs
- Aiming at the "amnesia" of deep learning, scientists proposed that based on similarity weighted interleaved learning, they can board PNAS
- js 闭包
- Huawei cloud store homepage banner resource bit application
- AP8022开关电源小家电ACDC芯片离线式开关电源IC
- 最长的可整合子数组的长度
猜你喜欢
随机推荐
AP8022开关电源小家电ACDC芯片离线式开关电源IC
更强的 JsonPath 兼容性及性能测试之2022版(Snack3,Fastjson2,jayway.jsonpath)
QT writing the Internet of things management platform 38- multiple database support
js 闭包
tcp为啥是三次握手和四次挥手
How to adapt your games to different sizes of mobile screen
工厂从自动化到数字孪生,图扑能干什么?
华为云云商店首页 Banner 资源位申请
What is involution?
凌云出海记 | 沐融科技&华为云:打造非洲金融SaaS解决方案样板
Oracle database, numbers Force 2 decimal places to display-Alibaba Cloud
面对同样复杂的测试任务为什么大老很快能梳理解决方案,阿里十年测试工程师道出其中的技巧
What if the win11 shared file cannot be opened? The solution of win11 shared file cannot be opened
易周金融 | Q1保险行业活跃人数8688.67万人 19家支付机构牌照被注销
Stack: how to realize the judgment of valid brackets?
Win11无法将值写入注册表项如何解决?
科普达人丨一文看懂阿里云的秘密武器“神龙架构”
记录线上bug解决list(未完待续7/4)
C # better operation mongodb database
Lingyun going to sea | 10 jump &huawei cloud: jointly help Africa's inclusive financial services