Essay sample library > HTML <s> Tag

HTML <s> Tag

2023-09-15 12:13:01

Labels should not be used to define substituted or deleted text

The most basic tag is the <html> tag. This tells the Web browser that it is all HTML. And there is a <body> tag in the <html> tag. Next is the <h1> tag and <p> tag in the <body> tag. Use <h1> tag for title title and <p> tag for paragraph. Other useful tags include <a> for hyperlinks, <table> for tables, <tr> for table rows, and <td> for table columns. In addition, HTML tags may contain "id" or "class" attributes. The id attribute specifies the unique ID of the HTML tag and the value must be unique within the HTML document. The class attribute is used to define the same style for HTML tags of the same class. You do not need to know them now. Use these IDs and classes only to make it easier to find the information you need. Wait, this sounds very irresponsible. Yes. If you really want to understand them, this is an irresponsible statement unless I think you learn about ID and class yourself, and study.

As we have already seen, HTML tags can be nested in other HTML tags. This is the function of forming an HTML hierarchical tree. If you nest an HTML tag into another HTML tag, the tag nested within it is called the child element of the previous tag. As you can imagine, the tag of another tag nested within it is called the parent tag. Let's look at the code for clarity. The situation is becoming increasingly complex. As you can see, this may last, we can have children's children and children's children. Therefore, in order to simplify things, instead of calling the root element as grand grand ......... grand parent, we simply call it the ancestor element. We call deeper children descendants of their ancestors. Child elements can become ancestors of other elements

The next part of the HTML file structure is the html tag itself. This is just a notation for starting HTML code. Indicates the starting point at which the browser starts rendering the content. This tag is the root of any HTML file. Everything you write in the HTML file is in this tag. In other words, this html tag is a descendant of each element of the page. This example is the font character set used in the content. Or the title of our page. It is usually displayed on the tab bar of the browser. These things do not appear in the visible part of our page, but still necessary. Therefore, the purpose of head is to provide the browser with all the important information about the rest of the page, and they are not actually displayed in the display part of the page.