MindMap Gallery HTML basic knowledge to organize notes
This is a mind map about HTML basic knowledge organizing notes 3. HyperText Markup Language (English: HyperText Markup Language, referred to as: HTML) is a standard markup language used to create web pages.
Edited at 2022-01-14 23:25:08This is a mind map about bacteria, and its main contents include: overview, morphology, types, structure, reproduction, distribution, application, and expansion. The summary is comprehensive and meticulous, suitable as review materials.
This is a mind map about plant asexual reproduction, and its main contents include: concept, spore reproduction, vegetative reproduction, tissue culture, and buds. The summary is comprehensive and meticulous, suitable as review materials.
This is a mind map about the reproductive development of animals, and its main contents include: insects, frogs, birds, sexual reproduction, and asexual reproduction. The summary is comprehensive and meticulous, suitable as review materials.
This is a mind map about bacteria, and its main contents include: overview, morphology, types, structure, reproduction, distribution, application, and expansion. The summary is comprehensive and meticulous, suitable as review materials.
This is a mind map about plant asexual reproduction, and its main contents include: concept, spore reproduction, vegetative reproduction, tissue culture, and buds. The summary is comprehensive and meticulous, suitable as review materials.
This is a mind map about the reproductive development of animals, and its main contents include: insects, frogs, birds, sexual reproduction, and asexual reproduction. The summary is comprehensive and meticulous, suitable as review materials.
Web
HTML
html overview
Hypertext Markup Language (English: Hypertext Markup Language, referred to as: HTML) is a markup language used to structure Web pages and their content. The content of the web page can be: a set of paragraphs, a list of key information, or it can also contain pictures and data tables.
basic structure
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>My test page</title> </head> <body> <p>This is my page</p> </body> </html>
<head> defines the document information <title> defines the title of the document <base> defines the default link address of the page link tag <link> defines the relationship between a document and external resources <meta> defines metadata in HTML documents <script> defines the client script file <style> defines the style file of the HTML document
<meta> tag
The <meta> tag provides metadata. Metadata is also not displayed on the page, but is parsed by the browser.
Define keywords for search engines:
<meta name="keywords" content="HTML, CSS, XML, XHTML, JavaScript">
Define description content for the web page:
<meta name="description" content="Free Web & Programming Tutorial">
Define page author:
<meta name="author" content="Runoob">
Refresh the current page every 30 seconds:
<meta http-equiv="refresh" content="30">
Add custom icon
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
basic tags
The so-called semantic tag is a tag that we can judge the semantics of the tag content just by the tag name.
h1~h6
The main purpose of making the <h> tag is to tell search engines that this is the title of a paragraph of text, which serves as an emphasis.
Generally speaking, <h1> is used to modify the main title of a web page, <h2> represents the title of a paragraph, and <h3> represents the subsection title of a paragraph.
Generally speaking, each web page can only have one <H1> tag
<h1> represents the most important, <h6> represents the relatively least important
<p>Text</p>
paragraph tags
<a href="#" target="_blank">This is a link that will open in a new window</a>
<a> tag defines hyperlink
<img src="image address" alt="text description of the image">
<img>: image embedded element
<br>
newline
div
span
text formatting tag
<small> defines small fonts
<b> Define bold text
<em> defines emphasis text
<i> Define italics
<strong> Define emphasis
strong and em are semantic, but b and i are not semantic.
<sub> defines subscripts
<sup> defines superscript words
<ins> defines underline
<del> defines the delete word
list
<ol type=" "> Define an ordered list
<ul> Define an unordered list
<li> Define list items
table <table>
<table border="1" cellspacing="2"> <olspan> Cell spans two rows</olspan> <tr> <th>First Name:</th> <td>Bill Gates</td> </tr> <tr> <th rowspan="2">Telephone:</th> <td>555 77 854</td> </tr> <tr> <td>555 77 855</td> </tr> </table>
Tag Description <table> defines table <th> defines the header of the table <tr> defines the rows of the table <td> defines table cells <caption> defines the table title <colgroup> defines the group of table columns <col> defines properties for table columns <thead> defines the header of the table <tbody> defines the body of the table <tfoot> defines the footer of the table
border="1"
frame
cellspacing="1"
Cell spacing="1"
colspan="2"
Cells span two rows
<caption>Table title</caption>
form <form>
<form> defines a form for user input <input> defines the input field <textarea> defines a text area (a multi-line input control) <label> defines the label of the <input> element, usually the input title <fieldset> defines a set of related form elements and encloses them in a frame <legend> defines the title of the <fieldset> element <select> defines a drop-down list of options <optgroup> defines option group <option> defines the options in the drop-down list <button> defines a click button <datalist>New specifies a predefined input control option list <keygen>New defines the key pair generator field of the form <output>New defines a calculation result
<form action="Submit address" method="Submit method">
<form action="https://www.baidu.com/s?" method="get" > <input type="text" name="wd"> <input type="submit" value="search" /> </form>
type attribute
traditional type
text Defines a single-line input field in which the user can enter text
Password defines the password field. Characters in this field are masked
file Define input fields and "Browse" button for file upload
radio Define radio buttons
checkbox defines checkbox
hidden Definition of hidden input fields
button Define a clickable button (in most cases, used to launch scripts through JavaScript)
Image Definition of the submit button in the form of an image
reset Define the reset button. The reset button clears all data in the form
Submit Define the submit button. The submit button sends the form data to the server
New type
Color Define color palette
tel Define an input field containing a phone number
<form action="#"> <input type="tel" placeholder="Please enter an 11-digit mobile phone number" pattern="\d{11}"> <input type="submit"> </form>
email Defines an input field containing an email address
url Defines an input field containing a URL address
search Define search domain
number Define an input field containing a numeric value
<input type="number" min="0" max="10" step="0.5" value="6" />
range Define an input field that contains numeric values within a certain range
<input type="range" min="0" max="10" step="0.5" value="6" />
max specifies the maximum allowed value min specifies the minimum allowed value step specifies legal number intervals value specifies the default value
Date Define the input field for selecting day, month and year
month Definition of the input field for selecting month and year
Week Define the input field for selecting week and year
time Define the input field for selecting hours and minutes
Datetime Define the input field for selecting time, day, month and year (UTC time)
Datatime-local defines the input field for selecting time, day, month, and year (local time)
value attribute format
date YYYY-MM-DD time hh:mm:ss.s datetime YYYY-MM-DDThh:mm:ss:sZ datetime-local YYYY-MM-DDThh:mm:ss:s month YYYY-MM week YYYY-Wnn
YYYY=year MM=month DD=day hh=hour mm=minutes ss=seconds s=0.1 seconds T = separator between date and time Z = time zone for Zulu time Wnn=W week number, starting from the first week of January is 1 until 52
css
JavaScript
theme
theme
theme