HTML Learn NOTE


HTML Learn NOTE

Q: What is HTML?

A: The HTML is a Hypertext Markup Language, using in web view and many apps.

Anatomy of HTML element

  • opening tag, such as <p>

  • ending tag, such as </p>

  • context that surrounding by opening and ending tag such.

and the complete element has both opening tag, ending tag and context.

Nesting elements

Elements can be placed within other elements. This is called nesting

ex: <storng>

<p>My cat is <strong>very</strong> grumpy.</p>

Block & Inline Element

Block Element display as block on page. The Block Element appeared next line after last content that precedes it.

ex: <p>yeah!~</p>

Inline Element often using in block element and surrounding small portion of the document’s content, rather than all paragraph or all block element.

ex: <em>QwQ</em>

Void Element

Not all elements include opening, ending tag and context. some elements only has one tag, often using to add or insert some things. This element is called Void Element.

ex: <img src="./Senrenbanka.png" />

HMTL Head

Language Define

<html> lang="zh-CN" </html>

It is used to define the language of this html file.

Meta

The meta is the define of this html file.

it can define the charset and other information of this html.

  • Charset <meta charset="utf-8">

  • Information <meta name="some" content="text">


文章作者: Fadouse
版权声明: 本博客所有文章除特別声明外,均采用 CC BY 4.0 许可协议。转载请注明来源 Fadouse !
评论
  目录