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

How does HTML realize that the displayed text is the same in the browser window?

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

Share

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

This article mainly introduces the relevant knowledge of "how to achieve the display of the text displayed in the browser window by HTML". The editor shows you the operation process through an actual case. The method of operation is simple, fast and practical. I hope that this article "how to achieve the display of text in the browser window with HTML" can help you solve the problem.

1.HTML basic tag picture common code form

属性名

There are three common picture formats: .jpg (lossy compression of pictures, affecting picture quality), .png (lossless compression, large volume, transparent channels), and .gif (motion pictures). The address of the picture path is divided into local pictures and network pictures, and the local pictures are divided into absolute paths (from the disk symbol) and relative paths (from the current path). The relative path belongs to the level relationship, if the picture is relative to the higher level, the form is ".. /" in

属性名

The alt= "attribute name" is the text displayed when the picture does not display properly, and the title= "placeholder" is the reminder text displayed by moving the mouse over the picture.

The 2.HTML basic tag text is divided into this paragraph

The title h2-h7. The text decreases as the tag number increases. The display code of the title is as follows:

one

two

three

four

five

6 HTML basic label text

seven

eight

9 title 1

10 title 2

11 heading 3

12 title 4

13 title 5

14 title 6

fifteen

sixteen

What we have to talk about here is the browser mechanism: for spaces, carriage returns, table keys, as long as between characters (what is a character, similar to

I am a character.

It is the text between the tags), the browser will be forced to convert to a space; if not between the characters, it will be cleared directly, of course, our arrangement in the editor to add spaces for typesetting needs! What should we do if we want the typographical text to be the same as the text displayed in the browser window? The common code is as follows:

one

two

three

four

five

6 HTML basic label text

seven

eight

9 line feeds

10 underscores 11 spaces

12 text formatting tags: 13 text bold

14 italics

15 delete line

sixteen

seventeen

3.html base tag hyperlink, usually in the form of text, in href= "#", this # can be replaced with any URL, if not written, it is empty, indicated by #. Click on the text of the link, the opening form of the link is divided into the current window and the new window, the display code opens for the new window, the current window opens, and we often talk about bookmarks: the anchor display code is as follows

View Code

168 Click Jump 1 or you can write: 168 Click Jump 1, in addition, the default click returns to the top

View Code

The list of 4.html basic tags is divided into unordered list, ordered list and custom list. Literally, it means that there is a difference in order. The code is shown as follows:

one

two

three

four

five

6 html basic tag list

seven

eight

nine

ten

11 1

12 2

13 3

14 4

fifteen

sixteen

seventeen

18 1

19 2

20 3

21 4

twenty-two

twenty-three

twenty-four

twenty-five

26 text

twenty-seven

twenty-eight

twenty-nine

thirty

The 5.html basic label table contains several rows, which contain several cells. The title of the cell is content, and the two most important ones in the table are concurrency or columns, while colspan= "" represents the number of cells that can span columns rowspan= "represents the number of rows that can be spanned, showing the code:

one

two

three

four

five

6 html Base label

seven

eight

nine

10 colspan columns number of rowspan rows

eleven

12 departments

13 name

14 gender

15 salary

sixteen

seventeen

18 Xiaoming

19 male

20 1W

twenty-one

twenty-two

23 Xiao Lin

24 male

25 1W

twenty-six

twenty-seven

28 small Shadow

29 female

30 1W

thirty-one

thirty-two

33 Total wages

34 3W

thirty-five

thirty-six

thirty-seven

thirty-eight

This is the end of the content about "how to display the text in the browser window in HTML". Thank you for reading. If you want to know more about the industry, you can follow the industry information channel. The editor will update different knowledge points for you every day.

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