HTML is made up of flags and attributes, which together are used to tell the browser how a page of a document should be displayed. A logo is used to reference a document component such as a piece of text or a picture. Properties are the options of the logo, which are modified in the logo, such as color, alignment, height and width, etc. Many signs appear in pairs, such as
and . The former indicates the beginning, the latter indicates the end, and the content is placed between the two.
Basic structure flag
HTML> ----------Indicates that the file is a
HTML file
----------Contains the title of the file, scripts used, style definitions, etc.
HELLO WORLD! - Contains the title of the file, which appears in the browser title bar
----------End mark of
-------- Place all the flags and attributes where the content is displayed in the browser
HTML> ----------End tag of HTML>
Other major flags All of the following flags are used in
----------Link flag, "..." is the linked file address
----------Display the image logo, "..." is the address of the image
----------Line break flag
----------Segmentation flag
----------Use bold fonts
----------Use italics
----------Draw horizontal lines
----------Define table, important mark in
HTML
|
----------Define the rows of the table, used in
| ----------Table unit, used in
----------Font style flag
Usage of attributes:
The attribute is used to modify the mark, and the attribute is placed inside the start mark.
For example: The attribute bgcolor="BLACK" indicates that the background color is black. Examples of reference attributes: indicates that the background color of the page is black, and
indicates that the background color of the table is black.
Commonly used attributes: alignment attribute, range attribute
ALIGN=LEFT left alignment (default) WIDTH=pixel value or percentage object width
ALIGN=CENTER Center HEIGHT=pixel value or percentage object height
ALIGN=RIGHT right-aligned color attribute
COLOR=#RRGGBB Foreground color refer to the color comparison table
BGCOLOR=#RRGGBB background color