


Front-end knowledge checking and filling in gaps (1)_html/css_WEB-ITnose
As a small front-end siege division, what has been particularly difficult recently is that the foundation is not solid. Therefore, I decided to change my past mistakes, review my knowledge again, and lay a solid foundation for myself. This article is purely a review of my missed knowledge points. If anyone is willing to read it, feel free to read it ~ I don’t charge any money anyway ~ Haha!
The first module: HTML
(1) HTML link - name attribute
The name attribute specifies the name of the anchor.
We can use the name attribute to create bookmarks in HTML pages.
The bookmark is not displayed in any special way and is invisible to the reader.
When using named anchors, we can create links that jump directly to the named anchor (such as a section on the page), so users don’t have to scroll the page to find what they need. information.
Example (meow(>^ω^<)~Give me a small example!):
Click me to jump~
Jump here Come on!
The code is as follows:
<a href="#tips">点我跳转啊~</a><a name="tips">跳转到这里来咯!</a>
Tip: The name of the anchor can be anything you like.
Tip: You can use the id attribute instead of the name attribute. Named anchors also work.
Note: Always add forward slashes to subfolders. If the link is written like this: href="http://www.w3school.com.cn/html", two HTTP requests will be generated to the server. This is because the server will add a forward slash to the address and then create a new request, like this: href="http://www.w3school.com.cn/html/".
Tip: Named anchors are often used to create a table of contents at the beginning of large documents. You can give each chapter a named anchor, and then place links to these anchors at the top of the document. If you frequently visit Baidu Encyclopedia, you will find that almost every entry in it uses this navigation method.
Tip: If the browser cannot find a defined named anchor, it will navigate to the top of the document. No errors will occur.
(2) HTML5 global attributes
| Definition and usage | Value | Description | IE | FireFox | Chrome | Safari | Opera |
contenteditable | Specifies whether the element content is editable | true|false | Specifies whether the element can be edited / Not editable | Y | Y | Y | Y | Y |
contextmenu | Provisions The element's context menu. When the user right-clicks on an element, a context menu appears. | menu_id | The id of the | N | Y | N | N | N |
data-* | Used to store private customizations for a page or application Data gives us the ability to embed custom data attributes on all HTML elements The stored (custom) data can be used in the JavaScript of the page, to create Better user experience (no Ajax calls or server-side database queries) | somevalue | Specifies the value of the attribute (as a string) | Y | Y | Y | Y | Y |
draggable | Specifies whether the element is draggable Drag |
true|false|auto Copy after login
| specifies the draggability of the element| specifies Elements are not draggable | Use browser default behavior | Y | Y | Y | Y | Y |
dropzone | Specifies whether to copy, move or link the dragged data when dragging data on an element |
copy|move|link Copy after login
| Dragging data will produce a copy of the dragged data| Dragging data will cause the dragged data to be moved to a new location| Dragging the data will generate a link to the original data | Y | Y | Y | Y | Y |
hidden | The hidden attribute is a Boolean attribute. If this attribute is set, it specifies that the element is still or no longer relevant |
|
| N | Y | Y | Y | Y |
spellcheck | 规定是否对元素进行拼写和语法检查 | true|false | 对元素进行拼写和语法检查| 不检查元素 | IE10+ | Y | Y | Y | Y |
(3)HTML5表单属性 - list
list 属性规定输入域的 datalist。datalist 是输入域的选项列表。
注释:list 属性适用于以下类型的 标签:text, search, url, telephone, email, date pickers, number, range 以及 color。
Webpage: <input type="url" list="url_list" name="link" /><datalist id="url_list"><option label="W3Schools" value="http://www.w3school.com.cn" /><option label="Google" value="http://www.google.com" /><option label="Microsoft" value="http://www.microsoft.com" /></datalist>

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

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics











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 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 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.

HTML is the cornerstone of building web page structure. 1. HTML defines the content structure and semantics, and uses, etc. tags. 2. Provide semantic markers, such as, etc., to improve SEO effect. 3. To realize user interaction through tags, pay attention to form verification. 4. Use advanced elements such as, combined with JavaScript to achieve dynamic effects. 5. Common errors include unclosed labels and unquoted attribute values, and verification tools are required. 6. Optimization strategies include reducing HTTP requests, compressing HTML, using semantic tags, etc.

The roles of HTML, CSS and JavaScript in web development are: HTML is responsible for content structure, CSS is responsible for style, and JavaScript is responsible for dynamic behavior. 1. HTML defines the web page structure and content through tags to ensure semantics. 2. CSS controls the web page style through selectors and attributes to make it beautiful and easy to read. 3. JavaScript controls web page behavior through scripts to achieve dynamic and interactive functions.

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.

HTMLisnotaprogramminglanguage;itisamarkuplanguage.1)HTMLstructuresandformatswebcontentusingtags.2)ItworkswithCSSforstylingandJavaScriptforinteractivity,enhancingwebdevelopment.

The article discusses the differences between HTML tags , , , and , focusing on their semantic vs. presentational uses and their impact on SEO and accessibility.
