HTML (a) Introduction, elements

Introduction to HTML

html Example:

<!DOCTYPE html>



菜鸟教程

My first title

My first paragraph

Living Example:

<! DOCTYPE html> HTML5 document declared case-insensitive
element is the root element of the HTML page
element contains meta document (Meta) data,
as defined in the page coding format utf-8. Element contains the visible page content
元素描述了文档的标题

Element defines a headline

Element defines a paragraph

HTML elements

HTML tags

HTML tags are keywords surrounded by angle brackets, such as
HTML tags are usually in pairs, for example , and
labels the first label pair is a start tag, the second tag is the end tag <tag> content start and end tags also referred to as closed and open-label tags

HTML title

HTML title (Heading) through

-

Tags to define the

This is a title


This is a title


This is a title

HTML paragraph

HTML paragraph tag by

Defined

A paragraph


Paragraph two

HTML links

HTML links are through the label defined
this is a link

HTML image

HTML image is generated by the label defined

HTML elements

HTML documents are defined by HTML elements

This is a paragraph


This is a link

line feed (no end tag)

HTML element syntax

Element start tag in HTML starting
HTML tag elements in order to terminate the end of
the element content is content between the opening and closing tags
certain HTML element has an empty content (empty content)
empty elements close (to start the start tag label end ends)
most HTML elements can have attributes

Nested HTML elements

element:

This is the first paragraph.


This one

Element defines a paragraph in the HTML document
The element has a start tag

And a closing tag


Element content is: This is the first paragraph

element:

This is the first paragraph.



Element defines the body of the HTML document.
This element has a start tag and an end tag
element content is another HTML element (p element)

Elements:

..............

This is the first paragraph.



..............

element defines the whole HTML document.
This element has a start tag and an end tag
element content is another HTML element (body element)


Empty elements

If the label in lower case

Guess you like

Origin www.cnblogs.com/peng8098/p/html_1.html