HTML-3 notes

HTML frame

Frame label<frameset>
  • Frame structure of the label () defines how the window frame is divided into
  • Each frameset defines a set of rows or columns
  • rows / columns of the predetermined values ​​of each row or column of the area occupied by the screen

    Frame Tag (Frame)
    Frame tag defines placed in each frame of the HTML document.
    The syntax examples are as follows:
<frameset cols="25%,75%">
   <frame src="frame_a.html">
   <frame src="frame_b.html">
</frameset>

If the frame has a visible border, the user can drag the border to change its size. To avoid this, it is possible <frame>added tab: noresize="noresize".
You can not tag and label use.

HTML Iframe

iframe for displaying a web page within a web page.
Syntax:
<iframe src="URL"></iframe>the URL of the page point to the location of isolation.
frameborder attribute specifies whether a border around the iframe, set attribute value of "0" can be removed borders

HTML file path

Absolute path: absolute file path is pointing to an Internet file full URL.
<img src="https://www.com.cn/images/picture.jpg" alt="flower">
Relative path: The relative path to the file relative to the current page.

<img src="picture.jpg"> picture.jpg``` 位于与当前网页相同的文件夹
<img src="images/picture.jpg">  picture.jpg 位于当前文件夹的 images 文件夹中
<img src="/images/picture.jpg"> picture.jpg 当前站点根目录的 images 文件夹中
<img src="../picture.jpg">  picture.jpg 位于当前文件夹的上一级文件夹中

HTML header element

HTML <head>element

<head>Element is a container for all the head elements. May contain elements within the script, instructs the browser where to find style sheets,
provide meta information, and so on.

HTML <title>element

<title>Tag defines the title of the document.
the title element in all HTML / XHTML documents are required.
title elements can:

  • Defines the title of the browser toolbar
  • Provide a page is added to the title that appears when favorites
  • Displays the page title in search engine results
HTML <base>element

<base> All links on the page labeled provisions default address or a default target:
<base href="http://www.com" />

<link> Tag defines the relationship between a document and an external resource

HTML <style>element

<style> HTML tags are used to document defines style information.

HTML <meta>element

Metadata (metadata) is information about data. <meta>Tag provides metadata about an HTML document

HTML character entities

In HTML, certain characters are reserved.
You can not use less than (<) and greater than (>) in HTML, this is because the browser will mistakenly believe that they are tag.
If you want to correctly display reserved characters, character entities must be used in the HTML source code
such as:
less than Number: &lt;or &#60;
uninterrupted space:&nbsp;

Guess you like

Origin www.cnblogs.com/qiaozhi8/p/12313877.html