Introduction to HTML

Source: Internet
Author: User
Tags format empty end tag name

Full written: Hypertext mark-up Language
Super-File Label language (one of the translation)
Cyberspace: A language for marking certain words in a common document, the purpose of which is to use tags (tag) to achieve the desired display effect.

HTML is a descriptive language defined in SGML, or HTML is an application of SGML, HTML is not a programming language, such as C + + and Java, it is just a markup language, basically you just understand the use of all kinds of tags to understand the html,html format is not Often simple, only by the combination of words and tags, in editing, any text editor can, as long as the file can be saved into an ASCII text format can be, of course, the Professional web page editing software is preferred.

Reading notes:
This "HTML profiling" is biased towards the introduction of tags, and given the understandable and per-section space problem, I am not classified by the HTML of the blog, which makes it easier for you to select interesting tags, where only "file tags" are required and the rest are optional. This article will not mention any web editing software, as long as you have mastered HTML, any web editing tool can become a sharp weapon.
Tag notation:
  • Any markings are surrounded by "<" and ">", such as < P >
  • No white-space characters can be left between the tag name and the less than sign.
  • Some tags need to be added, and some do not. such as <font size= "+2" >Hello</font>
  • Parameters can only be added to the start tag.
  • The symbol "/" before the tag name of the starting tag is its end tag, such as </font>
  • Tag letters can be both uppercase and lowercase.
Containment mark and empty tag:
Mark is divided into containment mark and empty mark by type
  1. Containment Mark
    As the name suggests, it surrounds the text with a start tag and an end tag to make it appear as expected.

    For example, HTML Source: <b> creation of webpage </b> is my favourite.
    Displayed: creation of webpage is my favourite.

    Where <b> </b> is called containment mark.
    It is displayed in bold with the start tag <b> and the end tag </b> marked text creation of webpage, which displays an error display in both cases.

  2. Empty tag
    Indicates that the tag appears alone, and that only the start tag has no end tag.

    For example, HTML Source:
    I Love creation of webpage. <br> It ' s a wonderful place.
    Show as:
    I Love creation of webpage.
    It ' s a wonderful place.

    The newline Mark <br> is an empty tag.
    Its role is to show everything after the mark on the next line, the visible end of the mark on it is meaningless, but some people will be the empty tag plus the end tag, which is convenient for token and has no effect on the HTML.



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.