Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the basic uses of HTML

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

In this article, the editor introduces in detail "what is the basic usage of HTML", the content is detailed, the steps are clear, and the details are handled properly. I hope this article "what is the basic usage of HTML" can help you solve your doubts.

1. Html tags are used to add semantics to the text, not to modify the text.

2. Specify the character set (GB2312, UTF-8). Html saves the same as the specified characters, so as not to garble the code.

3. The DTD document statement tells the browser what protocol I use to write it, not the html tag

4. Webstorm shortcut keys: https://www.cnblogs.com/yeminglong/p/5995421.html

1, h, p, and hr tags

2. Notes:

3. Picture:

4. Line break:

Used for line feeds with unfinished content

5. Jump:

6. Base tag:

7. False link: click will not jump

8. Anchor points:

1. Unordered list (!)

2. Ordered list (*)

3. Definition list

1. Format

2. Attributes

(1) width and height

(2) horizontal and vertical alignment (align and valign)

(3) inside and outside margins (cellpadding and cellspacing)

(4) thin line form

3. Other labels of the form

(1) caption: the title label of the form, which must be written in table and followed by table.

(2) th:th is at the same level as td, and th has the effect of thickening.

4. The structure of the table

(1) composition: caption title, thead header, tbody body, tfoot tail

(2) description:

5. Merge of cells

(1) horizontal direction: td attribute colspan = "2"

(2) Vertical orientation: td attribute rowspan = "2"

1. Format

2. Input tag

(1) type = text:

(2) password:

(3) radio: set name to be the same for mutual exclusion; checked is selected by default

(4) checkbox: select checked

(5) button:

(6) image:

(7) reset:value modifies the title

(8) submit:

(9) hidden:

-

* related labels:

The basic usage of HTML

The basic usage of HTML

3. Non-input tags

(1) select

(2) textarea

4. Practice

(1) all form tags except button can use value to specify the submitted value.

(2) adding a border to the form can be achieved by adding fieldset to form.

1. Video tag

(1) format:

(2) attributes: controls (control bar) poster (poster) loop (loop) preload (preload, conflict with autoplay) muted (mute) width/height

(3) another video format: solving browser compatibility

(4) make all browsers support video tags: through the js framework

2. Audio tag

(1) basically the same as video, only width and height attributes and poster cannot be used, there are also two formats

3. Details and summary tags

(1) format:

4. Marquee tag (Racing Lantern effect)

(1) W3C is not recommended, but the browser supports it well.

(2) attribute: direction (direction) scrollamount (speed of scrolling) loop (number of scrolls, default-1) behavior (scrolling type slide)

(3) abandoned labels:

Bold underlined italic delete line (no semantic)

Alternative tags: (semantics added)

5. Character entity

(1) & nbsp; spaces & lt;> & copy; copyright symbols

(2) understanding: special characters occupied by html that are not displayed are represented by other symbols instead of symbols, so that they can be displayed normally on the html page.

After reading this, the article "what are the basic uses of HTML" has been introduced. If you want to master the knowledge points of this article, you still need to practice and use it yourself. If you want to know more about related articles, welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report