Web front-end development --HTML Overview

HTML   HyperText MakeUp Language, "HTML", which is the standard language of web pages

Hypertext links is by way of text grouped together organically, HTML tag called a tag.

label

By the HTML tags. HTML is not case sensitive.

  • Surrounded by angle brackets, such as <title>
  • Usually in pairs, end-tag slash more than a start tag

Different labels have different names, representing different functions.

Is the content, tag a content between the opening and closing tags is a element . Figure:

In addition, there appears a separate label to a trailing slash, e.g. img tag:

<img src="https://img2018.cnblogs.com/blog/1365470/201906/1365470-20190630095532901-224307166.png" alt="" width="303" height="114" />

Tags can be nested, but can not cross.

Attributes

In addition to the name of the label, we can add attributes in the tag.

When multiple attributes separated by a space, did not affect the order among attributes

 

Guess you like

Origin www.cnblogs.com/lfri/p/11108849.html