Home > Article > Backend Development > What elements are there in html
HTML is the abbreviation of Hypertext Markup Language. HTML is the standard markup language used to create web content. HTML defines various parts of a Web page through tags. What elements are there? This article will introduce commonly used elements in HTML.
1. Heading elements: h1 ~ h6
There are six heading elements in HTML, namely h1, h2, h3, h4, h5, and h6. The h1 tag represents the largest title, and the h6 tag represents the smallest title. Typically, h1 is the most important heading on the page, and h6 is the least important heading on the page.
2. Paragraph element: p
Paragraph is a way to divide text into small blocks, and the p tag is used to create paragraphs. Normally, text is placed in p tags.
3. Link element: a
a tag is an element that defines a hyperlink. The a tag can link to any URL address. The href attribute defines the link URL.
4. Image element: img
The img tag is an element used to display images on a Web page. The src attribute specifies the URL of the image, and the alt attribute provides alternative text for the image that will be displayed when the image cannot be displayed.
5. List (List) elements: ul, ol, li
HTML provides two types of lists: unordered list (ul) and ordered list (ol). Each list item is represented by a li tag.
6. Table elements: table, tr, td
Table is a way to display data on a Web page. The table tag defines a table, the tr tag defines a row in the table, and the td tag defines a cell.
7. Form (Form) element: form
The form is a way to submit data to the back-end server. The form tag defines a form. Within the form tag, you can include controls such as input boxes, radio boxes, check boxes, and submit buttons.
8. Styles for title and paragraph elements
Title and paragraph elements can be styled and rendered using CSS styles.
9. Head element: head
The head element is used to add metadata to a Web page, such as the page's title, keywords, and description.
10. Horizontal Rule element: hr
The hr tag is used to create a horizontal line in a Web page.
In short, HTML has many elements that can create various parts of a Web page. At the same time, these elements can help readers better understand the structure of the page. In order to create high-quality web content, developers are recommended to be proficient in using these common elements.
The above is the detailed content of What elements are there in html. For more information, please follow other related articles on the PHP Chinese website!