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 is the function of HTML?

2025-04-10 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article mainly introduces the role of HTML is what, with a certain reference value, interested friends can refer to, I hope you read this article after a great harvest, the following let Xiaobian take you to understand.

html is a hypertext tag language, hypertext means that it can put anything, including text, sound, pictures, videos, and so on.

First, html has elements, i.e. tags similar to

< p >

< /p>

This, this double label means that it comes in pairs, you can write between the two, and if there's only one of them, congratulations, you've got the code wrong.

also has

< img />

This single label, just write one element

After writing the label, sometimes you have to give it some attributes.

For example: id: This attribute is similar to ID number, do not take duplicate values

class: This label is similar to grouping, grouping labels with the same requirements into a group

title: the content that will be displayed when the mouse hovers over the current label content

Style: This is for label style, that is, size, color, etc.

The above is the unified basic structure of html tags. Generally speaking, these codes will be automatically generated in the tools for writing html. If not, please input them by shortcut or handwriting.

Top belt! The tag is the specification that tells the browser to follow, which defaults to H5

html is the root tag containing everything

Head is information about the head.

Meta tags represent descriptive information. The charset written in them is a character set, that is, the reading mode is utf-8. This is a character set that can read Chinese. Of course, there are many other character sets.

title is the title of the page

For example:

Baidu inside is the title

The body is the subject of the page, which is what we see in the page.

Generally there are:

h: There are h2 to h7, which are double tags generally used to write titles, and the content will be large and bold.

p: double label, used to segment content

hr: You can display a dividing line in a web page

strong: bold font

em: display italics

u: underline content

del: In the text with a dash, indicating deletion

br: Very important, used for newlines, single label

< b />

font: Label of font, used to set font attributes

img: Image tag, usage

< img src"图片路径" width=""(图片宽) height=""(图片长)>

a: Link label, usage

< a herf="网页地址">

You can write content.

< a />

Click to jump to the next page.

ol/li: Ordered list, written:

ul/li: Unordered list, written similarly to ordered list:

div: box tag, generally used for page layout, used to wrap other tags

table/tr/td: table label, usage:

Properties of the table:

border: This is to set the line width and color of the table

cellpadding: indicates the spacing between the border and the cell content

cellspacing: indicates the spacing distance between the table frame and the border

align: Indicates how the table is aligned horizontally on the page

width: indicates width, either in pixels or as a percentage

height: indicates height, unit pixel

tr property; width and height can also be set, or you can use

align indicates how the cell contents are aligned horizontally

valign indicates how the cell contents are aligned vertically

TD's attributes:

rowspan: across rows, but to remove td tags with different rows overwritten

colspan: indicates cross-column, and also deletes td tags covered in the same row

There are also form forms: this is generally used to submit page data

Thank you for reading this article carefully. I hope that the article "What is the role of HTML" shared by Xiaobian will be helpful to everyone. At the same time, I hope that everyone will support you a lot and pay attention to the industry information channel. More relevant knowledge is waiting for you to learn!

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