html-tag(HTML tag).docVIP

  • 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

文档评论(0)

1亿VIP精品文档

相关文档