HTML&CSS Learning Notes 2 (Additional)
来源:互联网 发布:十面埋伏音乐知乎 编辑:程序博客网 时间:2024/06/11 08:09
Additional Knowledges
&
and "
<>
For displaying original tags, &
= &
, "
= "
, <
= <
and >
= >
<img src="URL" alt="NAME of Image">
Image has two values until now..
<code></code>
and <pre></pre>
For displaying computer source code or the content which all of computers can read. The style of font like Courier
, shortly, <code>
tags display source code style screen. But for the <pre>
tags, the difference is that it can keep the style of space and return firstly, and second is that the content is like String, you have to use transferred meaning characters. Like below,
<code>
You can directly see < and > </code>
<pre>
You have to use <
and >
to see < and >. </pre>
Video or Audio
<video></video>
Embedding the no video by using this two tags.
<video src="URL"><video>
Embedding the video without any control mechanisms.
<video src="URL" ATTRIBUTES ><video>
Attributes:
- controls : Displays the standard HTML5 controls for the audio on the web page.
- autoplay : Makes the audio play automatically.
- loop : Make the audio repeat (loop) automatically.
- preload : attribute is used in the audio element for buffering large files with three values,
- ”none” does not buffer the file
- “auto” buffers the media file
- “metadata” buffers only the metadata for the file.
<video><source></video>
For matching different formats or multiple sources, < source> is good to work.
<source src="URL" type="video/[FORMATs] codecs=dirac, speex">
Diffrent formats supported by browsers are different, like
Video: ogg, mp4, webm
Audio: ogg, webm, mp3, wave, wav, x-wav, x-pn-wav
Reference from :
https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Using_HTML5_audio_and_video
- HTML&CSS Learning Notes 2 (Additional)
- HTML&CSS Learning Notes 2
- HTML&CSS Learning Notes 1
- HTML&CSS Learning Notes 3
- HTML&CSS Learning Notes 4
- HTML&CSS Learning Notes 5
- HTML&CSS Learning Notes 6
- HTML Learning Notes
- HTML learning notes
- jquery.prop() -Additional Notes
- JSP Learning Notes 2
- Learning HTML+CSS
- Learning Notes
- Notes of Python Learning 2/10/2016
- Python chapter 2&3 learning notes
- Css Notes
- CSS notes
- HTML notes
- 有关微软技术方向的最新学习资源【2015-9月】
- 面试题总结1
- java笔记
- HDOJ problem1003(DP)
- 10020 - Minimal coverage(水题)
- HTML&CSS Learning Notes 2 (Additional)
- 【springmvc+mybatis项目实战】杰信商贸-13.购销合同列表
- hdu 5444 Elven Postman(二叉树)
- Git之添加远程库
- Python进阶06 循环对象
- 每天一个linux命令(4):mkdir命令 http://www.cnblogs.com/younes/archive/2009/11/20/1607174.html
- hdu 5446 Unknown Treasure(lucas+中国剩余定理)
- 【LeetCode从零单刷】Lowest Common Ancestor of a Binary Search Tree
- iOS之OC随笔-Model数据类型