天天看點

html元素_HTML元素

html元素

Coming immediately after the doctype declaration, the

<html>

code is the key to everything that comes after. This element is so important that it is often referred to as the root HTML element.

在doctype聲明之後 ,

<html>

代碼是後面所有内容的關鍵。 該元素非常重要,是以通常被稱為根 HTML元素。

As I mentioned in the previous article, the

<html>

element should have at least one attribute. Recall that attributes are always written inside the opening tag:

正如我在上一篇文章中提到的,

<html>

元素應至少具有一個屬性。 回想一下,屬性總是寫在開始标記内:

<html >
           

This a statement of the fact that the primary language on the page is English.

這說明頁面上的主要語言是英語。

Learn more about the

lang

attribute and writing direction.

了解有關

lang

屬性和編寫方向的更多資訊。

If you're following this series in order, your page now consists of:

如果您按順序執行此系列,則頁面現在包括:

&lt!DOCTYPE html>
<html >
           

If you save this page and open it in a browser, you'll see that it’s blank, due to the fact that we haven’t yet added any content to the page; before we do that, we need to learn how HTML elements nest together.

如果您儲存此頁面并在浏覽器中将其打開,則會發現該頁面為空白,原因是我們尚未向該頁面添加任何内容。 在此之前,我們需要學習HTML元素如何嵌套在一起 。

翻譯自: https://thenewcode.com/9/The-HTML-Element

html元素