Current location - Quotes Website - Signature design - What are the attributes of the label?
What are the attributes of the label?

attributes can be added to most HTML tags. Common attributes include width, height, color, background, font, etc. HTML attributes generally appear in HTML tags and are part of HTML tags. Tags can have attributes, which contain extra information. The value of attributes must be in double quotation marks. Tags can have multiple attributes. Tags can have multiple attributes. Attributes appear in pairs by attribute names and values.

syntax format ... tag name > Example: As shown in Figure 8. 1. HTML document

an HTML document is an HTML page, that is, a web page, which is composed of html elements, and all the contents of the internet are embodied by html documents, as shown in figure 9. The red border in the above picture is the main body, the text between and is the visible page content, and the blue border is the page title, which is the content in the tag.

the whole web page is an HTML document. The role of a Web browser is to read HTML documents and display them as web pages. The browser does not display HTML tags, but uses tags to explain the content of the page. 2. HTML comments

In actual development, it is necessary to make HTML comments on some code segments, which has many advantages, such as convenient search, convenient comparison, convenient understanding of other programmers' codes in the project team, and convenient understanding and modification of codes.

Syntax format (Figure 1):

Note: An exclamation point is required after the opening bracket (the bracket on the left) and not before the closing bracket (the bracket on the right). 3. font and color of words

define font tag pairs for text size and color.

basic grammar:

... its attribute values are: face (font), color (figure 11) and other examples: 4. article title (h tag)

the first thing you pay attention to when browsing a web page is the title of the article, with a large and prominent font. Usually used tag. H tags are divided into six types, namely-,and the font is from large to small.

example (fig. 12):

123456789111213h tag demonstration I am h1 tag, h2 tag, h3 tag, h4 tag, h5 tag and h6 tag. Running result: 5. Alignment attribute of title word (align)

1234567891 Alignment attribute of title word (align) Left alignment center alignment right alignment running. Tag)

123456789B Tags demonstrate that this is a normal font without using the B tag. The result of using the B tag bold font (Figure 14): Maybe readers will have questions, why the HTML code is obviously two lines, and the display result is one line. This is because line breaks, spaces, tab indents, etc. in HTML code will not be displayed in the browser, as shown in Figure 15. So how to achieve line breaks in HTML? Just add a line break

tag in the source code, as shown in Figure 16. Step 7 mark in italics