HTML Note 2 (for personal use)

Source: Internet
Author: User

properties that apply to most HTML elements : Id,class,style,title;

1. The browser automatically adds a blank line before or after the paragraph.
All consecutive empty lines (line breaks) in the 2.HTML code are also displayed as a single space.

HTML citations, references, and tag definitions :

  <abbr> Define an abbreviation,<address> define an address,

  <bdo> Define text orientation,

  <blockquote> Define a long reference,<q> to define the short cited term,

  <cite> Define references, citations,

  <dfn> define a definition project.

HTML text formatting tags :

<b>, bold text  
<em>, text-focused  
<i>, italic character  
<small>, small character  
<strong>, aggravating tone  
<sub>, subscript word  
<sup>, superscript word  
<ins>, inserting words  
<del>, delete word  

HTML "Computer Output" tab :

  <code>, defining computer code
  <kbd>, defining keyboard codes
  <samp>, defining a sample of computer code
  <var>, defining variables
  <pre>, defining pre-formatted text

links in HTML :

By default, the link will appear in the browser in the following form:

    1. A link that has not been visited is displayed in a blue font with an underscore .
    2. The visited links appear purple with underscores .
    3. When you click the link, the link appears in Red with an underscore .

Note: If you set CSS styles for these hyperlinks, the presentation style is displayed according to the CSS settings.

Always add a forward slash to a subfolder:

    • If you write this link: href= "http://www.google.com", it will generate two HTTP requests to the server.
    • This is because the server adds a forward slash to this address, and then creates a new request, like this: href= "http://www.google.com/".

HTML Note 2 (for personal use)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.