Hello World
当在Brackets中安装上Emmet插件后,就可以使用Emmet的语法来加速前端编写。
有关html
● 子关系>
div>ul>li
● 相邻+
div+p+bq
● 上一级^
div+div>p>span+em^bq
● 重复*
ul>li*5
● 分组()
div>(header>ul>li*2)+footer>p
● 类
div.demo
● ID
div#demo
● 索引$
ul>li.item$*5
ul>li.item$$$*5
ul>li.item$@-*5 倒排序
ul>li.item$@3*5 从3开始
● 文本
a{click me}
● 在父级元素中使用Emmet的缩写
.item
自动补全为:
以此类推,在ul,ol中补li,在table,tbody,thead,tfoot中补tr,在tr中补td,在select中补option
● 举例文本
p*4>lorem
有关css
● -bdrs,自动补全为:
-webkit-border-radius: ;
-moz-border-radius: ;
-ms-border-radius: ;
-o-border-radius: ;
border-radius: ;
● -foo,自动补全为:
-webkit-font: ;
-moz-font: ;
-ms-font: ;
-o-font: ;
font: ;
● -super-foo,自动补全为:
-webkit-super-foo: ;
-moz-super-foo: ;
-ms-super-foo: ;
-o-super-foo: ;
super-foo: ;
● -wm-trf,自动补全为:
-webkit-transform: ;
-moz-transform: ;
transform: ;
● lg(left, #fc0 30%, red),自动补全为:
background-image: -webkit-linear-gradient(left, #fc0 30%, red);
background-image: -o-linear-gradient(left, #fc0 30%, red);
background-image: linear-gradient(to right, #fc0 30%, red);
● border-image: lg(left, #fc0 30%, red),自动补全为:
background-image: border-image: -webkit-linear-gradient(left, #fc0 30%, red);
background-image: border-image: -o-linear-gradient(left, #fc0 30%, red);
background-image: border-image: linear-gradient(to right, #fc0 30%, red);
● ovh,自动补全为:
overflow: hidden;
有关操作
● 向外选择
ctrl+alt+B
● 向内选择
ctrl+alt+shift+B
● 成对元素标签之间跳转
ctrl+shift+T
● 包裹现有元素
现有:
Hello World
→ 把鼠标放在第一个p和>之间
→ ctrl+shif+A
→ 输入:.wrapper>h1{Title}+.content
→ 确认
Title
当然也可以选择多行元素,再进行包裹。
● 前一个编辑节点
ctrl+alt+left
● 下一个编辑节点
ctrl+alt+right
● 依次向后选择元素
ctrl+shift+.
● 依次向前选择元素
ctrl+shift+,
● 注释取消注释
ctrl+/
● 移除标签
ctrl+shift+K
● 合并多行
ctrl+shift+M
● 改变数值大小
ctrl+shif+方向键,以10为单位
ctrl+shift+alt+方向键,以0.1为单位
参考资料:http://docs.emmet.io/

To build a website with powerful functions and good user experience, HTML alone is not enough. The following technology is also required: JavaScript gives web page dynamic and interactiveness, and real-time changes are achieved by operating DOM. CSS is responsible for the style and layout of the web page to improve aesthetics and user experience. Modern frameworks and libraries such as React, Vue.js and Angular improve development efficiency and code organization structure.

Boolean attributes are special attributes in HTML that are activated without a value. 1. The Boolean attribute controls the behavior of the element by whether it exists or not, such as disabled disable the input box. 2.Their working principle is to change element behavior according to the existence of attributes when the browser parses. 3. The basic usage is to directly add attributes, and the advanced usage can be dynamically controlled through JavaScript. 4. Common mistakes are mistakenly thinking that values need to be set, and the correct writing method should be concise. 5. The best practice is to keep the code concise and use Boolean properties reasonably to optimize web page performance and user experience.

HTML code can be cleaner with online validators, integrated tools and automated processes. 1) Use W3CMarkupValidationService to verify HTML code online. 2) Install and configure HTMLHint extension in VisualStudioCode for real-time verification. 3) Use HTMLTidy to automatically verify and clean HTML files in the construction process.

HTML, CSS and JavaScript are the core technologies for building modern web pages: 1. HTML defines the web page structure, 2. CSS is responsible for the appearance of the web page, 3. JavaScript provides web page dynamics and interactivity, and they work together to create a website with a good user experience.

The function of HTML is to define the structure and content of a web page, and its purpose is to provide a standardized way to display information. 1) HTML organizes various parts of the web page through tags and attributes, such as titles and paragraphs. 2) It supports the separation of content and performance and improves maintenance efficiency. 3) HTML is extensible, allowing custom tags to enhance SEO.

The future trends of HTML are semantics and web components, the future trends of CSS are CSS-in-JS and CSSHoudini, and the future trends of JavaScript are WebAssembly and Serverless. 1. HTML semantics improve accessibility and SEO effects, and Web components improve development efficiency, but attention should be paid to browser compatibility. 2. CSS-in-JS enhances style management flexibility but may increase file size. CSSHoudini allows direct operation of CSS rendering. 3.WebAssembly optimizes browser application performance but has a steep learning curve, and Serverless simplifies development but requires optimization of cold start problems.

The roles of HTML, CSS and JavaScript in web development are: 1. HTML defines the web page structure, 2. CSS controls the web page style, and 3. JavaScript adds dynamic behavior. Together, they build the framework, aesthetics and interactivity of modern websites.

The future of HTML is full of infinite possibilities. 1) New features and standards will include more semantic tags and the popularity of WebComponents. 2) The web design trend will continue to develop towards responsive and accessible design. 3) Performance optimization will improve the user experience through responsive image loading and lazy loading technologies.


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

Dreamweaver CS6
Visual web development tools
