HTML language is very simple, every programmer says so.
It is indeed simple, so 99% of those who say they understand HTML will ignore many details.
When I wrote this blog post, I was on the way to learning JS, but found that I once thought I was best at HTML, but now I am embarrassed to say that I am proficient in it.
Next, I plan to carefully study 5 HTML tags every day and thoroughly understand the use of these things. Well... this is a systematic study.
First of all, let’s understand the relevant knowledge
1. Standard attributes
What are standard attributes? According to some articles I read on the Internet, and my own understanding - the attributes that all tags have are standard attributes (except for base, head, html, meta, param, script, style and title elements).
class, id, style, title (these are commonly used, I will not explain them in detail)
2. Language attributes
These tags do not contain These elements: base, br, frame, frameset, hr, iframe, param, and script elements.
dir="ltr" or "rtl" Set the text direction of the content in the element
lang ="en" or "zh-cn" ... and other language codes are used to set the element The language code of the content. Language code reference
3. Keyboard attributes
accesskey = "33" Keycode of keyboard keys, used to set keyboard shortcuts for accessing elements
tabindex = "123" Input Number, set the access sequence of keyboard keys TAB