Components
HTML has three main components:
- Elements: Identify different pieces and parts of an HTML page.
- Attributes: Provide additional information about an instance of an element.
- Entities: Represent non-ASCII text characters such as copyright symbols
Every little HTML markup that you employed to describe a Web page's content includes some combination of elements, attributes, and entities
Elements
Elements are on the core of HTML. They're just used to describe every piece of text on an html document page. Elements are made up of tags, and an element often have either a start plus end tag, or a start tag
Attributes
Attributes allow variety in the manner an element describes content or works to the page. Attributes facilitates an element so that it can be used differently depending for the circumstances.
<tag attribute="value" attribute="value">
Attribute values should always appear in quotation marks. The attributes and their values can be included in any order in the start tag. Every HTML element is known for a collection of attributes which they can display with it.
Entities
There are actually characters that basic ASCII copy doesn't include, such as trademark symbols, fractions, and also accented characters. Every entity begins using an ampersand (&) and ends with a semicolon (; ).
| Char | Code | Description |
| & | & | Ampersand |
| < | < | Less than |
| > | > | Greater than |
| © | © | Copyright |
| ® | ® | Registered trademark |
| ± | &plusmin; | Plus or minus |
| 2 | ² | Superscript 2 |
| 3 | ³ | Superscript 3 |
| ´ | ´ | Acute accent |
| ` | ` | Grave accent |
| # | # | Number |
| % | % | Percent |
No comments:
Post a Comment