Home > Article > Web Front-end > 15 Getting Started Questions About HTML
Hypertext Markup Language, also known as 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
, which are start tags and end tags respectively. But there are also some tags that have no content and do not have an end tag, such as .
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?
A: It will tell the browser what type of document it is and which version of the HTML specification it is written in.
4. What are tags in HTML?
Answer: Tag will tell the browser how to parse the content.
5. What is the way to write tags in HTML?
Answer: General format: Content usually appears in pairs, such as , 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:
Main body of text. 7. How to represent hyperlinks in HTML?
A: You can click on a text, image or other element with a hyperlink to jump to another page. Its general format:link text
, the href attribute represents the target address to jump to. Such asPHP100 Chinese website
8. What are attributes in HTML? Answer: Attributes provide specific information about an element. It is usually written in the opening tag, usually in the format of "name=vlaue".
9. How to make comments in HTML? Answer: The label of the comment is , and 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 ways 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. The second is to add the element in the head
of the HTML document and add the style in
, the third is to introduce a CSS file in the HTML header, that is, to make the CSS style adding rules into a separate file.
12. How to add pictures?
Answer: Use the tag, note that it does not have an end tag, and indicate the path to insert the image by assigning a value to its src attribute. Such as
13. How to represent the table? Answer: Use thetag, where
represents a row in the table andrepresents the content in the table. Such as:
R1,C1
R1,C2
R2,C1
R2,C2
14. How to represent a list?
Answer: represents an unordered list,
represents an ordered list, and represents list items.
15. What are
and
elements? Answer:is a block-level element, which can be used as a container for other HTML elements to distinguish different regional content; while is an inline element, which is generally only used as a container for a piece of text.