Home  >  Article  >  Web Front-end  >  15 basic HTML tips you must master

15 basic HTML tips you must master

零下一度
零下一度Original
2017-05-02 15:02:261264browse

Hypertext Markup Language, which we often call HTML, is a standard markup language used to create web pages. It is composed of a series of HTML tags. Most HTML tags appear in pairs, such as opening tags and closing tags. But there are also some tags that have no content and do not have closing tags, for example.

Hypertext Markup Language, which we often call HTML, is a standard markup language used to create web pages. It is composed of a series of HTML tags. Most HTML tags appear in pairs, such as

1179f652af8537777d18befc1b0d4a32 b2c0c84d878492a559064aae0c3e1944 , which are the start tag and the end tag respectively. But there are also some tags that have no content and do not have an end tag.

Here are 15 frequently asked questions about HTML for everyone to learn and refer to.

1.What does HTML stand for?
Answer: HyperText Markup Language, hypertext markup language.

2.What is HTML used for?
Answer: HTML is the standard markup language used to create web pages.

3.What is DOCTYPE?
Answer: It will tell the browser the type of document and which version of the HTML specification it is written in.

4.What are the tags in HTML?
Answer: The tag will tell the browser how to parse the content.

5. How to write tags in HTML?
Answer: General format: cb2a7e47b56f04bd50282f2166bfae3b content 01ebbe936ab3a95355a5cbf3c9a99f5c , usually appears in pairs, such as 01ffcd5d1a840d2341909ced6bafa76c 921722b53404cd5fe164a63f1f9be7b9 , they are called start tags and end tags respectively.

6.What is the structure of tags in HTML documents?
Answer: HTML documents follow the following format:

 < html>
      < head>  
          < title>
              My title.
          < /title>
      < /head>
      < body>
          Main body of text.
      < /body>
  < /html>

7. How to represent hyperlinks in HTML?
Answer: You can click on a text, image or other element with a hyperlink to jump to another page. Its general format: a44371715cb08bb9899ace89bc724271 link text16ef26f8b7ea0fc89bdf90e275a93e5d , the href attribute represents the target address to jump to. For example 9e79eec15cf59ace6d7c020bbccb1fc7 PHP100 Chinese website16ef26f8b7ea0fc89bdf90e275a93e5d

8. What are attributes in HTML?
Answer: The attribute provides specific information about an element. It is usually written in the opening tag, usually in the format of "name=vlaue".

9. How to comment in HTML?
Answer: The label of the comment is 85c2b7474629ec1bfb572d1e81fa6dd7 , in the middle is the content of the comment to be inserted.

10.What does CSS stand for?
Answer: Cascading Style Sheets, hierarchical style sheets.

11. How many methods are there to add CSS styles to HTML?
Answer: There are three ways to add styles to HTML elements. The first is to directly assign a value to the style attribute of the element, and the second is to add a style to the head of the HTML document ef0c2772b76bfffb9337fc47aea795ed 7cdffbc981ce578dc6212f54b5f55c8e , add the 6c1d9d1c5e7690ed0ad94b24a12b6eb7 element, and add the style in 6c1d9d1c5e7690ed0ad94b24a12b6eb7 74e107ac60256a5e268d6d598f0bdef1. The third method is to introduce the CSS file in the HTML header, that is, make the CSS style adding rules into a separate file.

12. How to add pictures?
Answer: Use the 5811a0e55f5c071c3af8b2b3e8fe348d tag, note that it has no closing tag, and indicate the path to insert the image by assigning a value to its src attribute. Such as83dcdf7a8f6f9294cb24652f35868b63

13. How to represent the table?
Answer: Use the 43c4707103c6cc3650c2aeb71d2b1e8d tag, where 868c3f8d39a371013a78a87c30e1b0d8 represents a row in the table, and 0f2d6b6549b1008808c133931ec1a1c9 represents the content of the table. Such as:

< table>
      < tr>  
          < td> R1,C1< /td>
          < td> R1,C2< /td>
       < /tr>  
        < tr>  
          < td> R2,C1< /td>
          < td> R2,C2< /td>
      < /tr>
< /table>

14. How to represent a list?
Answer: 7af642afb7cbf7886d194925c3e5eedb represents an unordered list, 8e22c81817d224bf490a20f8d20d8ac9 09471ad0eb7abf3904b81228b087d334 represents an ordered list, 8e22c81817d224bf490a20f8d20d8ac9 represents a list item.

15. What are 01ffcd5d1a840d2341909ced6bafa76c and 427924e0bc1c500e0479e017d951eadf elements?
Answer: 01ffcd5d1a840d2341909ced6bafa76c is a block-level element that can be used as a container for other HTML elements to distinguish different regional content; while 427924e0bc1c500e0479e017d951eadf is an inline element and is generally only used as a container for a piece of text.

The above is the detailed content of 15 basic HTML tips you must master. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn