Getting Started: Basic HTML tags and attributes introduction _ HTML/Xhtml _ webpage Creation

Source: Internet
Author: User
HTML consists of tags and attributes, which are used together to tell the browser how to display a page of documents. A flag is used to reference document parts such as a text or an image. The attribute is a flag option, such as color, alignment, height, and width. Many of the logos are correct. For example, if & lt; TITLE & gt; exists, & lt; TITLE & gt; the previous one begins, HTMLAre composed of flags and attributes, which are used together to tell the browser how to display a page of documents. A flag is used to reference document parts such as a text or an image. The attribute is a flag option, such as color, alignment, height, and width. Many of them are correct, for example There isThe first one indicates start, the last one indicates end, and the content is placed between the two.
Basic Structure flag
< HTML> ---------- Indicates that the file is HTMLFile
---------- Contains the file title, script used, style definition, etc.
Hello world!-Contains the file title, which appears in the browser title bar
----------End sign
-------- Place all the logos and attributes of the information in the browser. The content is displayed in the browser.
HTML> ---------- < HTML> End mark
Other major flags: All of the following flags are usedMedium
---------- Link icon, "…" The URL of the linked file.
---------- Display the image logo, "…" Is the image address

---------- Line feed sign

---------- Segmentation mark
---------- Use italics
---------- Italics
---------- Horizontal line drawing

---------- Definition table, HTMLImportant sign
---------- Define table rows, used in
Medium
---------- Table unit, used inMedium
---------- Font style logo
Attribute usage:
The attribute is used to modify the flag. The attribute is placed in the Start flag.
For example, the bgcolor = "BLACK" attribute indicates that the background color is BLACK. Example of referencing a property:Indicates that the page background color is black,
The background color of the table is black.
Common attributes: Alignment attribute range attributes
ALIGN = LEFT alignment (default) WIDTH = pixel value or percentage object WIDTH
ALIGN = center height = pixel value or percentage object HEIGHT
ALIGN = RIGHT alignment color attribute
COLOR = # RRGGBB foreground COLOR reference COLOR table
BGCOLOR = # RRGGBB background color

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.