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 of HTML

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

Today, the editor will share with you the relevant knowledge points about the basic tag of HTML, which are detailed in content and clear in logic. I believe most people still know too much about this, so share this article for your reference. I hope you can get something after reading this article. Let's take a look at it.

HTML:Hyper Text Markup Language (Hypertext markup language) is a markup language for users to create web documents. The web page itself is a text file, adding markups to the text file. HTML is the markup language used to create web pages, and the content of HTML tags is parsed by browsers; WYSIWYG!

1. Simplicity: the superset method used in the version upgrade of hypertext markup language makes it more convenient and flexible.

2. Extensibility: the way of subclass elements adopted by hypertext markup language brings guarantee for system expansion.

3. Platform independence: as long as there is a browser

4. Versatility: HTML is the general language of the network, a simple and universal markup language.

HTML tags usually appear in pairs, with a start tag and an end tag, called a pair tag. An empty tag with no closing tag

HTML tags all have attributes in the format: attribute name = "attribute value" attribute name = "attribute value". Multiple attributes are separated by spaces

HTML tags are not case sensitive. Lowercase is recommended.

The suffix of the HTML file is html or htm

Attributes:

Color: color of the text

BgColor: background color

Background: background picture

The representation of the color:

Color name red blue green yellow orange

RGB Mode # 000000 # ffffff # 325687

Attributes:

Width: the length of the horizontal line (two types: pixel representation. Second: percentage display)

Size: the thickness of the horizontal line (usually given a single digit, such as 6px)

Color: color of the horizontal Lin

Align: alignment of horizontal lines (left, center, right)

There are 6 levels from H2 to H7. The smaller the number, the larger the title. By default, bold occupies one line.

Block-level tag div: exclusive line with line feeds; line-level tag span: all content is on the same line

Function:

Block-level tag div is mainly combined with css to do page block layout, while row-level tag span is mainly used to display friendly prompts.

Unordered list

Ul (unorder list)

Ul is an unordered list and is identified by default as a solid circle disc

Circle hollow circle

Square black square

Ordered list

Ol (order list)

Ol is an ordered list, with the default identification of the Arabic numeral 1

An A letter dictionary order

I I Roman numerals

Definition list

Dl (defination list) definition list

Dt (defination title) definition title

Dd (defination description) definition description

Img independent label

Attributes:

Src Picture address width Picture width height Picture height border Border alt Picture text description is displayed when the picture is not loaded correctly? The text displayed when title hovers over the mouse

Hyperlinks can be text or pictures, you can click on the link tag to enter a new document, or a part of the current document; a tag

Attributes:

Href= "redirected address" to jump to the public network requires the addition of the protocol target:_self (current document)

_ blank (new page, will always open new page)

If a page previously opened by search exists, the new page will not be opened and will be reused directly.

Name acts as an anchor point (top, bottom). You need to provide a name attribute for the tag for assignment.

You need to click the jump tag href attribute to # name

Tables are defined by table tags, and each table has several rows (defined by the tr tag), and each row consists of several cells (defined by the td tag)

Table attribute:

By default, there is no border to reflect border: border width bordercolor: border color cellspacing: cell spacing cellpadding: cell-content spacing width: width height: height align: control table alignment left center right

Properties of td:

Align: control the alignment of cell contents left center rightvalign: control the vertical alignment of cell contents top middle bottom

Ordinary form

Table tr td

The header of the form

Th: Center font bold by default

Column merging of tables

Colspan

Row merging of tables

Rowspan

These are all the contents of the article "what are the basic tags of HTML?" Thank you for reading! I believe you will gain a lot after reading this article. The editor will update different knowledge for you every day. If you want to learn more knowledge, please pay attention to 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