HTML learning notes (1), HTML learning notes (

Source: Internet
Author: User

HTML learning notes (1), HTML learning notes (

1. html is a hypertext markup language, and html is used to create webpages.


2. There are two types of HTML file extensions: .html and .htm.


3. The basic structure of html is:
<Html>
<Head>
<Title> </title>
</Head>
<Body> </body>
</Html>


4. The h1-h6 label is the title label that can change the size of the text.


5. the br label is a line feed label and a single label. A single label means that a single label is not a pair.


6. font labels are used to change the color, size, font, and other attributes of text.


7. The p label is a paragraph label.


8. B labels make the text bold.


9. I labels make the text italic.


10. u labels underline the text.


11. The sup label is used to place the text above the line.


12. The sub label is used to place the text below the row.


13. the img label is used to display images on the webpage. the src attribute is used to specify the image position, and the width and height attributes are used to change the width and height of the image, the alt attribute is used to add a prompt to an image. The align attribute can change the position of the image on the webpage, or set the alignment between the image and the text next to it.


14. hr is a horizontal line label on the web page. size is used to set the horizontal line size, width is used to set the horizontal line width, and color is used to set the horizontal line color.


15. The ol label is used for an ordered list. Each item in the list needs to be placed in the li label. The ol type attribute can change the serial number style of the sequence.


16. The ul label is used for unordered list. Each item in the list must be placed in the li label. The ol type attribute can change the serial number style.


17. pre is a pre-format label. Its function is to display the code in the webpage to the webpage according to the code format.


18. tag a is used to jump to a webpage. It has two functions. The first function is to jump between a webpage and a webpage, and the second is to jump inside the webpage, the href attribute specifies the destination.


19. The marquee label is used to scroll text or images. The direction attribute is used to set the scroll direction. The scrolldelay attribute is used to set the scroll speed. The smaller the value, the faster the scroll speed.


20. the table label indicates a table with tr and td labels. The tr label indicates a row and the td label indicates a column. align indicates the position of the table and border indicates the table boundary, cellpadding controls the distance between text and boundaries in cells. Colspan is used for cross-column merge, rowspan is used for cross-row merge, and cellspacing is used to set the distance between cells.


21. We can use the align and valign attributes of td to control the text position in a cell.


22. Set the black line secret in the table:


 


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.