Thẻ body> có cần thiết trong HTML không
In the first article of this series, we looked at the first element of the element, the HTML head tag. In this article, we will explain what the HTML body tag is and what it is used for. Show
Thẻ nội dung HTML là gì?The HTML body element is the container for the content of an HTML document. It must be the second element of the element and follows the head element. Each HTML document can only contain one body element. Thẻ nội dung HTML được sử dụng để làm gì?Nội dung của tài liệu HTML có thể có nhiều dạng khác nhau. Tất cả các trang web chứa văn bản. Hầu hết các trang web cũng chứa hình ảnh. Một số trang web cũng chứa video và âm thanh. Trong bài viết này, chúng ta sẽ xem xét cách văn bản có thể được sử dụng trong một trang web ChữOn the most basic level, text can be used as a heading or a paragraph. Headings are used to give structure to the content. There are six headings from to is used as the main heading. Each page should only contain one is used as a subheading, and to are used as sub-subheadings. It is possible to have multiple sub- and sub-subheadings. This article uses two headings, each followed by a paragraph, and multiple headings, also each followed by a paragraph. Always use the next heading in the hierarchy, and don’t “jump over” one type of heading. This will look strange on the rendered page. But more importantly, it will confuse readers who rely on screen readers to access the content of your page. They will think they missed some content.In some cases, it is recommended to use the tag to combine headings and paragraphs into a unit of independent and self-contained content. Examples are news stories or posts in a forum or blog articles. Microsoft retires Internet ExplorerOn June 15, 2022, Internet Explorer was officially retired and is out of support. Users will be progressively redirected to Microsoft's new browser, Microsoft Edge. At a future date, Internet Explorer will be permanently disabled. |
tag, so that their content is rendered as a heading. Inside the | tag, the scope attribute should be used to help screen readers identify which data in the table belong to the heading. Most often, the value for the scope attribute will be “col”, i.e. the heading refers to all data directly beneath it.
Thân bànThe table body contains the table’s primary data. In our example, each row contains the data about one movie. Since we have defined four headings, each row must contain four cells. In all rows, except for the headings, the data for these cells is placed inside a | tag. It is possible to define headers for each row. This makes screen readers read out the entire row at once, and further improves accessibility. 0chân bànThe table foot contains footer content. It can either be placed beneath the table head or beneath the table body. It is placed inside a |
---|