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 tags and attributes of HTML

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

Share

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

This article mainly introduces the basic tags and attributes of HTML, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.

HTML is made up of flags and attributes, which are used together to tell browsers how to display a page of document. The logo is used to refer to document parts such as a paragraph of text or a picture, and attributes are options for the logo to modify it, such as color, alignment, height and width. Many flags appear in pairs, for example, the previous one indicates the beginning, and the latter table.

HTML is made up of flags and attributes, which are used together to tell browsers how to display a page of document. The logo is used to refer to document parts such as a paragraph of text or a picture, and attributes are options for the logo to modify it, such as color, alignment, height and width. Many flags appear in pairs, for example, the first indicates the beginning, the latter indicates the end, and the content is placed between the two.

Basic structural mark

-indicates that the file is a HTML file

-contains the title of the file, the script used, style definition, etc.

HELLO WORLD! -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

Other major signs 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

-Segmentation Fla

-in boldface

-use italics

-draw lines horizontally

-define tables, important flags in HTML

-define the rows of the table, used in

-Table cells, for use in

-Font style flag

The usage of attribute:

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

For example, the attribute bgcolor= "BLACK" indicates that the background color is black. An example of a reference attribute: indicates that the background color of the page is black and that the background color of the table is black.

Common attributes: align attribute range attribut

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

ALIGN=CENTER centers HEIGHT= pixel value or percentage object height

ALIGN=RIGHT right align Color attribut

COLOR=#RRGGBB foreground color reference color comparison table

BGCOLOR=#RRGGBB background color

Thank you for reading this article carefully. I hope the article "what are the basic tags and attributes of HTML" shared by the editor will be helpful to you. At the same time, I also hope you will support us and pay attention to the industry information channel. More related 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: 236

*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