Home > Web Front-end > HTML Tutorial > Summary of HTML+CSS knowledge points

Summary of HTML+CSS knowledge points

零下一度
Release: 2017-06-25 09:34:31
Original
1499 people have browsed it

The entire front-end development workflow

  1. The product manager proposes project requirements

  2. UI design draft

  3. Front-end personnel are responsible for developing static pages (backend personnel who are synchronized with the front-end are preparing data)

  4. Interaction between front-end and back-end

  5. Testing

  6. Product launch (late project maintenance)

Internet principles

  1. When the user is in the browser When you enter a URL, it will be sent to the corresponding server to request the web page information corresponding to the URL

  2. The server will download the web resources corresponding to the URL to a temporary file on your computer Folder

  3. The resources in the temporary folder are displayed through the browser (so when we request the website for the second time, the speed will be much faster)

Element

  • Inline elements: There are n multiple inline elements in a row, and the width and height of inline elements cannot be set

  • Block elements : A block element, occupying one line by itself;

  • Inline block element: There can be multiple inline block elements in one line, but the width and height can be set

html skeleton structure

  • !DOCTYPE..Document declaration header (html5, html4.01, XHTML)

  • In html4.01 and XHTML each have 3 small specifications

  1. strict strict

  2. transitional ordinary

  3. frameset Frame

  • html: Hypertext Markup Language; all "tag pairs" used in it

  1. head

  • meta(charset:UTF-8,GB2312)

  • <meta name="description" content="Content to be described"/>

  • <meta name ="keywords" content="Keywords, keywords"/>
    (The above two metas are for SEO optimization)

  • ##Title of the page

##body
    • Title
    • Paragraph p: Although p is a block element, it contains are also pictures and text;
    • span: is used to put text: pictures and text;
    • aLink
    • >
    • Picture
    htmlMore interpretation

    • html only considers tag nesting, and has nothing to do with tabs and spaces. Countless spaces are only counted as one


    • Image tag


    • Relative path: based on the current page Search for the starting point; (./ or do not write, find the parent../)

    • Absolute paths: all start with http; for example:

    • There are two commonly used attributes on the image tag. The src attribute: introduces the image address; alt tag: the text used to replace the image when it cannot be loaded normally; (alt can also be omitted)

    • Commonly used attributes of a link

      ##href: 'The address to jump to', the role of href
      You can fill in the absolute path and jump to the web page until
    • You can write #: 1) When you are not sure of the address 2) Simply return to the top effect
    • Use anchor points to switch pages
    title: Tips when the mouse is above
  • target: Opening method (default _self current page opens; _blank new page opens)
  • Among these attributes, title and target can be omitted;
    • aThe anchor point of the link is used
      Jumps between various modules on this page

    1. 2 Realize mutual jump between different pages and different modules

      ##List

    Unordered list: li in the unordered list is also a container;
      <ul>
      <li></li>
      <li></li>
      </ul>
      Copy after login
    • Ordered list
    • <ol>
      <li></li>
      <li></li>
      </ol>
      Copy after login
    • Definition list: dl, dt, dd is a container
    • <dl>
      <dt>表头</dt>
      <dd>详情介绍</dd>
      </dl>
      Copy after login
    • Form
    • Form use
      • Input text box
      • Enter password
      • Radio button: Radio button group, must add name, otherwise the radio selection effect cannot be achieved;
      <input type="radio" name="sex"/>男
      <input type="radio" name="sex"/>女
      Copy after login
    • Multiple checkbox
    • ##Drop-down list

      <select>
      <option name="city" value="bj">北京</option>
      <option name="city" value="sh">上海</option>
      <option name="city" value="sz">深圳</option>
      <select>
      Copy after login
    • name and value are mainly used for the front-end to submit data to the background;

    • id:

    • Set the style (not Recommendation)
      1. In the JS stage, used to obtain the element

      2. id matches a link to set the anchor point;

      3. Message box:
      • Button

      Normal button type=button

      • Submit button type=submit

      • Reset button type=reset

      • Selector

      ##Tag selector: div h1~h6 p span a img ul li ol dl dt dd input select

      • Steps to add a small icon:

      Go to the official website to get the picture (take JD.com as an example) :

      1. ##Save the above image as to your computer


      2. Note: Put the icon icon in the "root directory" of the folder;
      3. Add in the html page:

      The above is the detailed content of Summary of HTML+CSS knowledge points. For more information, please follow other related articles on the PHP Chinese website!

      Related labels:
      source:php.cn
      Statement of this Website
      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
      Popular Tutorials
      More>
      Latest Downloads
      More>
      Web Effects
      Website Source Code
      Website Materials
      Front End Template