[html]20150211

head标签的六种大小

Empty html element: <br>

<br> is an empty element without a closing tag (the <br> tag defines a line break).

Empty element can be “closed” in the opening tag like this: <br />.

HTML Attributes

  • HTML elements can have attributes
  • Attributes provide additional information about an element
  • Attributes are always specified in the start tag
  • Attributes come in name/value pairs like: name=”value”
<p title="About W3Schools">
W3Schools is a web developer's site.
It provides tutorials and references covering
many aspects of web programming,
including HTML, CSS, JavaScript, XML, SQL, PHP, ASP, etc.
</p>

Title is the atribute of element <p>

full version of the guide of tag reference:http://www.w3schools.com/tags/default.asp

Headings Are Important

Use HTML headings for headings only. Don’t use headings to make text BIG or bold.

Search engines use your headings to index the structure and content of your web pages.

Users skim your pages by its headings. It is important to use headings to show the document structure.

h1 headings should be main headings, followed by h2 headings, then the less important h3, and so on.

 

The <hr> tag creates a horizontal line in an HTML page.

 

 

The HTML <title> Element

The HTML <title> element is meta data. It defines the HTML document’s title.

The title will not be displayed in the document, but might be displayed in the browser tab.

 

The HTML <meta> Element

The HTML <meta> element is also meta data.

It can be used to define the character set, and other information about the HTML document.

 

 

With HTML, you cannot change the output by adding extra spaces or extra lines in your HTML code.

The browser will remove extra spaces and extra lines when the page is displayed.

Any number of spaces, and any number of new lines, count as only one space.

 

The HTML <pre> element defines a block of pre-formatted text, with structured spaces and lines.

 

 

//or actually you can use the <br> in <p> to make the line right with the text format.

 

The HTML Style Attribute

The HTML style attribute has the following syntax:

style=”property:value

The property is a CSS property. The value is a CSS value.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.