What an HTML document can contain

Source: Internet
Author: User
Tags tag name

with different tags, HTML documents can contain different content, such as text, links, images, lists, tables, forms, frames, etc.
Text
HTML support for text is the most abundant, you can set different levels of title, segmentation and wrapping, you can specify the semantics and appearance of text, you can describe the text is referenced from other places, and so on.
Link
Links are used to indicate that the content is related to another page or to a location on the current page.
Image
Images are used to make the page more aesthetically pleasing, or to provide more information.
List
Lists are used to describe a series of entries that are related to each other.
Form
A table is the form in which data is organized by rows and columns. There are also many people who use tables for page layouts.
Form
Forms are usually made up of text input boxes, buttons, multiple boxes, radio boxes, drop-down lists, and so on, making HTML pages more interactive.
Framework
The
framework enables pages to contain other pages.
HTML Document Format detailed description(Do you want to know, click here to see)

The basic format of the HTML document is described earlier, with a detailed explanation below.

HTML documents can be created and edited with any text editor (such as Notepad, UltraEdit, etc.), because its content is essentially just some text.

In HTML text, the section enclosed in angle brackets is called a label. If you want to use angle brackets in the body (or large and small numbers, in short, the same thing), you must use character escapes, that is, convert the original meaning of the character. < should use &lt; instead of,> to use &GT, and as for the & symbol itself, you should use &amp; overrides (it must be said that there are many HTML documents that do not follow this rule, Common browsers can also analyze whether & is an escaped start or a symbol, but this is not recommended.

A tag is essentially a description of what it contains, and there may be attributes to give more information. For example, the (picture) tag has the SRC attribute (used to indicate the address of the picture), the width and Height properties (used to describe the width and altitude of the picture). What tags can be used in HTML, which attributes are available to each of these tags, all of which are prescribed, after knowing the basics here, learning HTML is actually learning these tags. A brief introduction to commonly used HTML tags is made later in this article.

Labels usually have a starting and ending section (also known as the start and end tags), which together define what the tag contains. Properties can be specified only in the start tag, and the attribute values may be enclosed in single or double quotation marks. The end tag is represented by the/plus tag name. Sometimes, some tags do not contain other content (including only their own properties, even the properties are not), in this case, can be written like this: . Note the last space and a backslash, which indicates that the label has ended and does not require a separate end tag.

Some tags contain content that can also have new tags, and the new tag name may even be the same as the name of the label that contains it (which tags can contain tags and which tags are also specified). Like what:

Click to view Effects

<div>
<div> Category Catalogue ...</div>
<div> Current categorized Content list ...</div>
</div>

In this case, the last label that appears should end first.

All whitespace characters in the HTML document (space, Tab, line feed, carriage return) will be ignored by the browser, the only exception is the space, the space is treated as a space, regardless of whether there is a, or two, or 100. The reason for this rule is that ignoring whitespace allows the author of HTML to arrange content in the format he feels most convenient, such as adding indents after each label starts, and reducing indentation after the end of the label. Because the English text hollow lattice is used very commonly (used to separate words), so the space has made such special treatment. If you want to display contiguous spaces (for example, to indent), you should use &nbsp; to represent spaces.

What an HTML document can contain

Related Article

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.