HTML self-study notes (Basic HTML structure + document settings ),
Basic HTML Structure
Function: contains basic information about a file, such as the title of a webpage.
Note: content marked in
3. <title> HTML file title tag </title>
Function: the "topic" of the page is displayed in the upper-left corner of the browser window.
Note: The title of a Web page cannot be too long. It must be short and accurate to reflect the content of the page. <Title> </title> tags cannot contain other tags.
4. <body> HTML subject tag </body>
Function: This tag is the main part of a Web page. It can be included between tags, for example, <p> </p>,
Common attributes: bgcolor, text, link, vlink, and alink)
For example, <body alink = "red"> </body>
5. <meta> meta-information)
Function: provides meta information about pages, such as descriptions and keywords for search engines and update frequency.
Required attribute: The content value, some text, defines metadata related to the name attribute.
Common name attributes: author (webpage author) keyword (webpage keyword) description (webpage description) others (Other Language Information)
Note: <meta> must be placed in the head element.
HTML document settings
I. Format mark
<Li value = "">
8. <dl> <dt> <dd> definition list
Usage: Brief description of list entries
Format: Both <dt> and <dd> are in <dl>.
<Dl>
<Dt> Software Description: </dt>
<Dd> briefly introduces software functions and basic applications </dd>
</Dl>
9.
10. <div> the display tag of a partition is also called a layer tag.
HTML paragraphs that are commonly used to orchestrate a large section can also be used to format a table similar to P. div can be nested in multiple layers.
Ii. Text mark
<B> bold font </B>
<I> oblique font mark </I>
<Sub> font Markup
<Cite> the font of the reference method, usually italic (such as references) </cite>
<Em> emphasize, usually in italic </em>
<Strong> indicates emphasis, usually in a bold font </strong>
<Small> small font, nested </small>
<Big> large font, nesting </big>
<U> underline </u>