• michaeltlwong

The HTML language of the WEB country

--The basic syntax of HTML

HTML is the web's dialect, which is much easier to learn than The Chinese dialects of Cantonese and Hokkien.Learning the HTML language, which requires no programming foundation, is much easier than learning a computer language such as C++ or Java.Of course simple doesn't mean unimportant.Imagine if the Internet did not have a web page, what would it be like?I can't even imagine.

Now Mr. Diamond has met a mermaid on the Web and is learning HTML from her. Come on let's see if it's easy to learn:

The basic syntax of HTML

Some words are put in <...>In, looks very much like some kind of special fixed constraint.If you try to open a few more pages, you'll find there are many <body></body>, <title></title> tags. In HTML, if the stereotype <body>...</body> The purpose of tags, called tags, is to "tag" the content of a page so that the browser can recognize the designer's requirements and display it correctly in the page. There are three principles to follow when using tags:

  • The tag starts with the opening tag and must have an appropriate closing tag, such as &LT;body&gt;The first label must be &lt;/body&gt;To finish.

  • Attribute values in tags must be enclosed in quotes.An attribute is a descriptive language used to describe the characteristics of an object.Mr ILeap, for example, weighs an astonishing 200 kilos."Weight" is an attribute that describes the person."200 jin is the attribute value of this attribute."

  • The use of multiple tags on the same text must follow the principle of nesting, that is, one tag must be nested within another tag.

This is just like the arithmetic rule requiring the use of the principle of braces: "{curly brace [curly brace]}" is a typical nesting.

Mr. Diamond and the mermaid went to dinner first. Wonderful continue ...