- 4
- 0
- 约6.89千字
- 约 12页
- 2017-07-25 发布于河南
- 举报
html-tag(HTML tag)
html-tag(HTML tag)
Basic HTML tag description
html defines HTML documents.
body defines the body of the document.
h1 to h6 defines Heading 1 to heading 6.
p defines paragraphs.
br insert fold.
hr defines horizontal lines.
! -- define comments.
Title
The title is defined using the h1 to h6 tag. h1 defines the largest title. h6 defines the smallest title.
h1This is a heading/h1
h2This is a heading/h2
h3This is a heading/h3
h4This is a heading/h4
h5This is a heading/h5
h6This is a heading/h6
HTML will automatically add an additional fold before and after the title.
paragraph
The paragraph is defined using the p tag.
pThis is a paragraph/p
pThis is another paragraph/p
HTML automatically adds an extra blank line around the paragraph.
Line break
The br tag comes in handy when youre going to end a row without starting a new paragraph.
No matter where you put it, the br tag generates a forced line feed.
pThis, br, is, a, parabrgraph, with, line, breaks/p
The br tag is a blank tag, and since it doesnt make sense to close the tag, it doesnt have a similar /br
Termination label.
br or br /
You will increasingly find br and br are very similar. Because br does not have an end tag,
It also violates one of the future rules of HTML, that is, all elements must be closed.
The label for br / is future proof approach, XHTML and XML are accepted
The practice of closing labels within an open label.
HTML annotation
Annotation tags are used to insert comments in the HTML source code. The comment will be ignored by the browser. You can use it
The annotation explains your code, which will help you edit your code later in the day.
! -- This is a -- comment
Note: you need to write an exclamation mark after the left bracket, and there is no need before the right brackets.
Anchor tags and Href attributes
HTML uses the a (anchor) tag to create links to another document.
Anchor can point to any resource on the network: a HTML page, an image, a sound or video
Documents, etc..
Create anchor syn
您可能关注的文档
- 英语单词自然发音——二十八条拼读规则1(English word phonics - twenty-eight spelling rules 1).doc
- 英语写作高分短语(English writing high score phrases).doc
- 英语单词起源(Origin of English words).doc
- 英语发展史(History of English Development).doc
- 英语口语大赛策划书(Oral English contest book).doc
- 英语同意词(English agreed words).doc
- 英语名著(English classics).doc
- 英语听力方法(English listening methods).doc
- 英语发音十大规律(Ten major rules of English pronunciation).doc
- 英语听力 文化大国(English listening culture is a great country).doc
原创力文档

文档评论(0)