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 commonly used HTML tags and their corresponding attributes

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

Share

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

This article mainly introduces the commonly used HTML tags and their corresponding attributes, the article is very detailed, has a certain reference value, interested friends must read it!

Basic structure label:

Indicating that the file is a HTML file

, including the title of the file, the script used, style definition, etc.

Contains the title of the file, which appears in the browser title bar

, the end sign of

Place all flags and attributes that display information in the browser, where the content is displayed in the browser.

, the end sign of

, the end sign of

For other major labels, all of the following signs are used in:

, link sign, "…" Is the address of the linked file

, display the picture logo, "…" Is the address of the picture

, line break sign

, segment flag

In boldface

Using italic characters

Draw lines horizontally

Define tables, important flags in HTML

To define the rows of the table, used in

To define the cells of the table, used in

Font style flag

Attributes:

The attribute is used to modify the flag, and the attribute is placed in the start flag.

Example: the attribute bgcolor= "BLACK" indicates that the background color is black.

Examples of referencing properties:

Indicates that the background color of the page is black

Indicates that the background color of the table is black.

Common attributes:

Alignment attribute, range attribute:

ALIGN=LEFT, left alignment (default), WIDTH= pixel value or percentage, object width.

ALIGN=CENTER, centered, HEIGHT= pixel value or percentage, object height.

ALIGN=RIGHT, align to the right.

Color attributes:

COLOR=#RRGGBB, foreground color, reference color comparison table.

BGCOLOR=#RRGGBB, background color.

It means absolutely in the middle.

The table identifies the beginning and end of the table.

Attributes:

The cellpadding= value is in pixels, which defines the inner distance of table elements.

Cellspacing= values are measured in pixels, which define the spacing between table elements

The border= value is in pixels, which defines the width of the table border

Width= numeric units are pixels or window percentages that define the width of the table

Background= picture link address, define the background image of the table

The beginning and end of a table row in a table

The beginning and end of a cell in a row in a table

Attributes:

Colspan= "", cells span multiple columns

Rowspan= "", cells span multiple lines

Width= ""; define table width

Height= ""; define table height

Align= ""; alignment

Valign= ""

Border= "", border width

Bgcolor= "", background color

Bordercolor= "", border color

Bordercolorlight= "", the color of the bright side of the border

Bordercolordark= "", the color of the dark side of the border

Cellpadding= "", the distance between the content and the border (default is 2)

Cellspacing= "", the distance between cells (default is 2)

Forced line wrapping

The beginning and end of a text logo

Attributes:

Face= font

Color= Color

The beginning and end of the bold text logo

Attributes:

Style=font-size:40pt;, controls the font size with a stylesheet, which is 40 points

The beginning and end of the partition identity

Attributes:

Align= | center | left | right | horizontal alignment

The beginning and end of the dynamic identification, such as placing the map format within the logo, can achieve picture scrolling

Attributes:

Scrollamount=1~60, rolling speed

Direction= | left | right | up | down |, scroll direction

Scrolldelay= roll delay (in milliseconds)

Paragraph identification

Space character

Map identification

Attributes:

Src=../../ image link address, essential attributes for map identification

Style=filter:Alpha (opacity=100,style=2)

Filter: style sheet filter

Alpha: transparent filter

Opacity: opacity 100 (0,100)

Style: style 2 (0x3)

Rules= "none" does not show inner box "

Multimedia file identification

Attributes:

SRC= ".. /.. / FILENAME"

Set the path of the music file, the file type can not only play .rm; .mp3; .wav audio, but also play .swf and .mov videos.

AUTOSTART=TRUE/FALSE

Whether to automatically play the music file after it is transferred. Yes for TRUE, no for FALSE. Default is FALSE.

LOOP=, sets the number of playback repeats. LOOP=6 means to repeat 6 times, true or-1 is an infinite loop, and false stops playing once.

STARTIME= "minutes: seconds"

Set the starting time for the music to play, such as STARTIME=00:20 after 20 seconds.

VOLUME=0-100

Set the volume. If not, use the volume of the system.

WIDTH,HEIGHT

Set the size of the control panel to 0 to hide the player

HIDDEN=TRUE

Hide the control panel

CONTROLS=CONSOLE/SMALLCONSOLE

Set the appearance of the control panel

Background music logo, can only be used in .wav and .mp3 formats.

Attributes:

LOOP=, sets the number of playback repeats. LOOP=6 means to repeat 6 times, true or-1 is an infinite loop, and false stops playing once.

The above is all the content of the article "what are the common HTML tags and their corresponding attributes?" Thank you for reading! Hope to share the content to help you, more related knowledge, 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