Introduction to HTML, basic tags and properties

Source: Internet
Author: User
Tags closing tag

Introduction to HTML

HTML refers to Hypertext Markup Language (Hyper Text Markup Language), which is not a programming language, but a markup language (Markup Language), markup language is a set of tag tags (Markup tag), HTML uses tag tags to describe Web page, the HTML tag tag is often called the HTML tag (HTML tag), which is a keyword surrounded by angle brackets, such as

HTML tags are usually paired, such as <b> and </b>,html tags can have attributes, the first label in the label is the start tag, the second tag is the end tag, the start tag (start tag or opening TAG) is the element name surrounded by angle brackets, the end tag (end tag or closing tag) is a slash and element name surrounded by angle brackets, the start and end tags are also known as open tags and closed tags, some HTML elements are not end tags, such as <br/> or < hr/>,html tags tag HTML documents and HTML elements, HTML Document Description Web page it contains HTML tags and plain text, HTML documents are composed of nested HTML elements, HTML documents are also called Web pages, the role of Web browser is to read HTML documents, and display them as Web pages. The browser does not display HTML tags, but instead uses labels to interpret the contents of the page.

HTML Instance
HTML Basic TagsHTML title

The HTML title (Heading) is defined by tags such as

This is a heading the is a heading the is a     heading
HTML paragraph

The HTML paragraph is defined by the <p> tag.

<p>This is a paragraph. </p> <p> This is another paragraph.</p>
HTML Links

HTML links are defined by the <a> tag.

<a href= "Http://www.w3school.com.cn" This is > a link</a>

Note: Specify the address of the link in the href attribute.

HTML Images

HTML images are defined by tags.

/>

Note: The name and dimensions of the image are provided as attributes.

HTML Properties

HTML tags can have attributes that are always in the form of name/value pairs, such as: Name= "value", which is always specified in the start tag of an HTML element.

Center Arrange headings

Background Color
<body bgcolor="yellow">
table Border
<table border="1">Forms </table>

Introduction to HTML, basic tags and properties

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.