In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article introduces the relevant knowledge of "What are the HTML attributes?" In the actual case operation process, many people will encounter such difficulties. Next, let Xiaobian lead you to learn how to deal with these situations! I hope you can read carefully and learn something!
Attribute element description accept Specifies the file type accepted by the server (type="file" only)accept-charset Specifies the character encoding used for form submission accesskey Global attribute Specifies a shortcut key to activate/focus element action Specifies where form data is sent when the form is submitted alignHTML5 does not support, use CSS instead of specifying alignment based on surrounding elements. alt,
, Specify an alternative text when the original element cannot be displayed async Specifies that the script executes asynchronously (external scripts only)autocomplete, Specifies whether or not the element has autofocus enabled, , Specifies that the element should automatically gain focus when the page loads autoplay, Specifies that audio/video starts playing as soon as it is ready bgcolorHTML5 does not support, uses CSS instead of the background color of the specified element. borderHTML5 does not support CSS instead of specifying the width of an element border. charset, specify character encoding checked Specify a URLclass that the element should be preselected when the page loads (for type="checkbox" or type="radio")cite, , , specify a URL that interprets reference/delete/insert text Global properties Specify one or more class names for the element (reference a class in a stylesheet)colorHTML5 does not support, use CSS instead of specifying the text color of the element. cols Specifies the visible width of the text area colspan, specifies the number of columns that a table cell should span content Gives a value associated with the http-equiv or name attribute contentedible global property Specifies whether the content of the element is editable controls, specifies that audio/video controls are displayed coordinates of the specified area data specifies URLdata of the resource to be used by the object-* global properties used to store custom data to the page or application datetime, , specifies the date and time default specifies that if the user's preferences do not indicate that another trace is more appropriate, then enable tracingdefer Specifies that scripts are executed when the page completes parsing (external scripts only)dir global properties Specify the text orientation of the content in the element dirname, Specifies that text orientation will be submitted disabled, ,, , , Specifies that the specified element/element group download should be disabled when the user clicks the hyperlink draggable global properties Specify whether the element can be dragged dropzone global properties Specify whether to copy, Move or link dragged and dropped data enctype Specifies how form data should be encoded when submitted to the server (only for method ="post")for, specifies which form element the label/calculation binds to form, ,,, , , specifies the name of the form to which the element belongs formaction, specifies where form data is sent when the form is submitted, only for type="submit"headers, specifies one or more header cell heights,, associated with the cell,
, , , Specify the height of the element hidden global attribute Specify that the element is not yet relevant or no longer relevant high Specify the range of values considered high href, , Specify the URL of the page to which the link points hreflex, , Specify the language of the linked document http-equiv Provide HTTP header id for information/value of content attribute Global attribute Specify unique idimap for element
Specify image as server-side image mapping kind Specify type of text trace label, , Specify title of text trace lang Global properties Specify language list of element content Predefine an optional list for element Pointing to an element loop, Specify audio/video to restart at each end (loop) low Specify range considered low max, , Specify maximum maxlength, Specify maximum number of characters allowed in element media, ,, specify media/device method optimized for linked documents specify HTTP method to use when sending form data min, specify minimum value multiple, specify that users can enter multiple values muted, specify that audio output for video should be muted name, ,, , ,,, , , specify name of element novalidate specify that the form should not be validated when submitted onabort,,
script to run on abort onafterprint script to run after printing document onbeforeprint script to run before printing document onbeforeunload script to run when document is about to unload onblur all visible elements script to run when element loses focus oncanplay, , when file is ready to start playing (when it has been buffered to start playing) script running oncanplaythrough, a file can play through to the end when the script runs, no pause buffer onchange all visible elementsscripts that run when an element's value changes onclick all visible elementsscripts that run when an element is clicked oncontextmenuall visible elementsscripts that run when context menus are triggered oncopy all visible elementsscripts that run when element contents are copied oncuechange scripts run when threads change; Element oncut all visible elements Script ondblclick all visible elements Script ondrag all visible elements scripts to run when dragging onto a valid drop target ondragstart all visible elements scripts to run at the start of a drag operation ondrop all visible elements scripts to run when dragging elements are deleted ondurationchange, scripts to run when media length changes onempted, files suddenly unavailable when problems occur (e.g. accidental disconnection) onended, script will run when media arrives at terminal (useful event for messages like "Thanks for listening")onerror, , ,
, , , , Script will run onfocus all visible elements when an error occurs Script onhashchange run when element gains focus Script oninput all visible elements run when element gets user input Script oninvalid all visible elements Script onkeydown all visible elements Run when user presses key Script onkeypress all visible elements Run when user presses a key Script onkeyup all visible elements When user Script to run when key is released onload, ,
, , , scripts to run when an element finishes loading onloadeddata, scripts to run when loading media data onloadmetadata, scripts to run when loading metadata (such as dimensions and delays) onloadstart, scripts to start loading files before actually loading anything scripts to run onmousedown all visible elements onmousemove all visible elements whenever the mouse pointer is moved over the element The script runs onmouseout all visible elementsThe script runs onmouseover all visible elementsThe script runs onmouseup all visible elementsThe script runs onmousewheel all visible elementsThe script runs onofflineThe script runs onpagehide when the browser starts working offline scripts that run when a user navigates from a page onpagehow scripts that run when a user navigates to a page onpasteall visible elements scripts that run when a user pastes something in an element onpause scripts that run when a user pauses or programmatically pauses media onplayscripts that run when media starts playingscripts that run when the history of the media playbackonpopstate window changes onprogress scripts that run while the browser is fetching media data onratechange scripts that run each time the playback rate changes, such as when the user switches to slow motion or fast forward mode. onreset Script that runs when the reset button in the form is clicked. The onresize script runs when the browser window resizes. onscroll all visible elementsscripts that run when scrolling the scroll bar of an elementonsearchscripts that run when the user writes content in the search field (for) onsearchedreposition the position of media playingscripts that fire when done, indicating that positioning has ended onsearchingreposition media (For example, to drag the playback progress of a video) onselect all visible elementsscripts to run when selecting elementsonstalled scripts to run onstorage when updating Web Storage areasonsubmit scripts to run onsuspend when submitting formsfor whatever reason, until the media data is fully loaded scripts that will stop running when media data is fetched ontimeupdate scripts will run when playback position changes (such as when user fast-forwards to a different position in media)ontoggle scripts that run when user opens or closes elements onunload scripts that run when unloading pages (or closing browser windows) onvolumechange scripts that will run each time the volume of video/audio is changed onwaiting scripts will run when media is paused but expected to resume ((e.g. when the media pauses to buffer more data)onwheel all visible elements script that runs when the mouse wheel scrolls over or under an element open specifies that details should be visible to the user optimumspecifies what the optimal value of the metric is patternspecifies a regular expression consisting of a check on the value of the element placeholder, specifies a short prompt describing the expected value of the element poster specifies the image to be displayed before the video downloads or the user clicks the play button preload, Specifies whether and how the author thinks audio/video should be loaded when the page loads readonly, specifies that the element is read-only rel, , specifies the relationship between the current document and linked documents required, , specifies that the element must be reversed before submitting the form specifies that the list order should be descending (9, 8, 7…)rows specifies the number of rows visible in the text area rowspan, specifies the number of rows table cells should span sandbox sets additional limits for the contents of; scope Specifies whether the header cell is a column, row, or group of columns Header selected Specifies that an option should be preselected when the page loads Shape Specifies the shape of the area size, specifies the width, in characters (for) or specifies the number of visible options (for)sizes
, , Specify the size of the linked resource span, Specify the number of columns to span spellcheck global properties Specify whether to check spelling and syntax of elements src, ,
, ,,, , specify URLsrcdoc of media file specifies HTML content of page to be displayed in;srclang specifies language of audio track text data (if kind="subtitle" is required)srcset
, specifies URLstart of an image to use in different cases specifies starting value of an ordered list step specifies legal numeric spacing of input fields style global attribute specifies inline CSS style for element tabindex global attribute specifies tabling order of element target, , specifies where to open linked document or where to submit target title of form global attribute specifies additional information about element translate global attribute specifies whether the content of element should be translated type, ,,, , Specifies the type of element usemap
, Specify image as client image mapping value, ,, , Specify element value width, , ,
, , , Specify the width of the element wrap Specify how to wrap the text in the submit text area in the form. This is the introduction of the content of "What are the HTML attributes?" Thank you for reading. If you want to know more about industry-related knowledge, you can pay attention to the website. Xiaobian will output more high-quality practical articles for everyone!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.