Home >Web Front-end >H5 Tutorial >Enhanced markup for parsing HTML
In recent years, Hypertext Markup Language (HTML) has expanded rapidly. To meet more needs, it adds many extended functions. Designing novel and attractive web pages increasingly relies on Java applets, embedded scripts, frames, plug-ins, and other extended HTML features. These extended HTML functions can not only further format the text, but also embed programs, animations and other interactive elements, transforming the once static homepage into a new wonderful
unparalleled picture, which can be made at any time Readers can give full play to their imagination and design a charming homepage. Below I will introduce several hypertext tags used to enhance the functionality of HTML pages. These tags are increasingly used in web design.
1.〈script〉 tag
〈script〉 is an HTML tag used to mark javascript and vbscript programming. Its format is as follows:
〈script attribute = attribute value〉javascript or vbscript program source code 〈/script〉
You can Insert as many <script>...</script> tag blocks into the page as you like. The <script> tag has a variety of attributes (such as event, for, language, src, etc.), the most commonly used of which is the language attribute, which is used to specify the language type of the script, such as "javascript" or "vbscript". <br/>2.〈applet〉 tag <br/>〈applet〉 tag is a special tag used to insert java applet into the page. It has a variety of attributes. The general attribute format of the <applet> tag is as follows: <br/>〈applet attribute = attribute value〉〈/applet〉<br/> Its various attributes are used to define the path, file name, and location of the java applet on the page. , size and operating parameters, etc. <br/>3.〈object〉 tag <br/>〈object〉 tag can be used not only to insert activex controls into the page, but also to insert other ole objects, such as images, documents, animations, applets, etc. Its format is: <br/>〈 object attribute = attribute value〉〈/object〉<br/> Its various attributes are used to set the type, path, size and position displayed on the page, etc. of the inserted object. <br/>4. 〈param〉 tag <br/> After using the 〈object〉 tag to insert an activex control or other object into the page, sometimes it is necessary to pass parameters to the object or control, in which case the 〈param〉 tag is used. This tag does not have a corresponding end tag 〈/param〉, and this tag is only valid in the 〈object〉 tag. Its general format is: <br/>〈param name=* value=* valuetype=* type=*〉<br/>Each attribute The meaning is: name is the name of the parameter; value specifies the value of the parameter; valuetype specifies how to represent the value of the parameter; type specifies the media type. <br/>5.〈embed〉 tag<br/>This tag can be used to embed multimedia files in the homepage, such as movies, sounds, virtual reality languages (vrml), etc., but at this time, you need to install the corresponding multimedia files in the browser. plugin. The 〈embed〉 tag behaves differently in each plug-in. Its general format is: 〈embed src=″url″〉. <br/>6.〈bgsound〉 tag<br/>This tag is used to insert background music into the page. Its format is: <br/>〈bgsound src=″url″ loop=″*″〉<br/>where src is used to specify the address of the wav file, loop Set the number of loop playback times. </script>
For more related content, please pay attention to the PHP Chinese website (www.php.cn)!