Essay 1, HTML basics

Essay 1

1.1. What is a web page

Everything we open the browser to visit is made up of web pages. Simply put, web pages are html

1.2, HTML concept

1.2.1: Hyper Text Markup Language (Htper Text Markup Language), an application under the standard universal markup language. HTML is not a programming language, but a markup language, which is necessary for web page production.

1.3 Main structure

Document declaration header : <!DOCTYPE html>--> html5 document declaration header, tells the browser that the current webpage syntax is html5
webpage tag : <html></html>-->All the content of the webpage is in this group of tags.
Page header tag : <head></head>
----> Webpage The predefined information is written in this group of tags
----> <meta charset="uft-8">: Set the character set encoding for the web page
----> <title>网页标题</title>: Web page title
Web content tag : <body></body>--> The content shown to the user is hoped to be in the body tag

1.4, commonly used labels
1.4.1, functional label
  • List:

Ordered list:<ol><li></li></ol>

  1. Number sort: 1
  2. Alphabetical order: a/A
  3. Roman alphabet: i/I

Unordered list:<ul><li></li></ul>

  1. Filled circle: disc
  2. Hollow circle: circle
  3. Solid square: square
  • image<img src="">
  1. src attribute
  2. Absolute path: full address
  3. Relative path: relative to the current location of the html file where the picture is needed
  4. Width/height attribute: image width and height, only set one for equal scaling
  5. alt attribute
  • Hyperlinks<a href=""></a>
  1. href: link address
  2. title attribute
  • div tag and span tag
  1. div: Mainly used for web page cutting to facilitate web page development
  2. Span is usually used to store ordinary text content
  • form
  1. Table label basic attributes
    border: border
    width/height: width and height
  2. Row:<tr></tr>
  3. Cell <td></td>
    basic properties:
    alige: left/right/center text alignment
    colspan: specifies the number of columns that the cell can span
    rowspan: specifies the number of rows that the cell can span
  4. Title in the table:<th></th>
  5. Cell-to-cell spacing: cellspacing
  6. Cell and content spacing: cellpadding
1.4.2, auxiliary label
  1. Title tag: h1-h6
  2. Paragraph tag: p
  3. Horizontal line: hr [single label]
  4. Strikethrough: del
  5. Oblique emphasis: em
  6. Bold emphasis: srtong
  7. Italic text: i
  8. Preformatted text: pre:
  9. Line break: br [single label]

Guess you like

Origin blog.csdn.net/BookstoreSpirit/article/details/100096838