Home Web Front-end HTML Tutorial 2016.6.10-2016.6.17

2016.6.10-2016.6.17

Jun 20, 2016 am 08:42 AM

说在前面:

嗯...博主现在是大一,前段时间犯脑癌想开一个技术博,记录一下学习过程,也是这么做的。

为什么要学前端呢?无非就是为了走在发家致富,迎娶白富美的康庄大道上。那几周来对前端开发已经入门了,(鼓掌,鼓掌)非常有意思。但还是感觉道阻且长。不懂的东西越来越多......不过还好,有好多人帮我呀,ありがとう。

html+css+js,入门很容易。读过网页设计的书也感觉OK。(捂脸,折腾小一个月还是有战果的),希望懒癌远离我,让我坚持把博客写下去。

从这周开始对学过的HTML5和CSS,开始梳理一下知识点(我觉得重要的标签,今天先写一部分)。


头:

标签:定义在

标签中。用于定义网页的信息。

下面是一些总结:

<span style="color: #008080;"> 1</span>     <span style="color: #0000ff;"><span style="color: #800000;">meta </span><span style="color: #ff0000;">charset</span><span style="color: #0000ff;">="utf-8"</span> <span style="color: #0000ff;">/></span>
<span style="color: #008080;"> 2</span>     <span style="color: #0000ff;"><span style="color: #ff00ff;">页面编码信息</span><span style="color: #0000ff;">></span>
<span style="color: #008080;"> 3</span>     <span style="color: #0000ff;"><span style="color: #800000;">meta </span><span style="color: #ff0000;">http-equiv</span><span style="color: #0000ff;">="refresh"</span><span style="color: #ff0000;"> content</span><span style="color: #0000ff;">="5"</span><span style="color: #ff0000;">; url</span><span style="color: #0000ff;">="www.baidu.com"</span><span style="color: #0000ff;">/></span>
<span style="color: #008080;"> 4</span>     <span style="color: #0000ff;"><span style="color: #ff00ff;">url被省略时,为刷新本页面</span><span style="color: #0000ff;">></span>
<span style="color: #008080;"> 5</span>     <span style="color: #0000ff;"><span style="color: #800000;">meta </span><span style="color: #ff0000;">http-equiv</span><span style="color: #0000ff;">="expires"</span><span style="color: #ff0000;"> content</span><span style="color: #0000ff;">="Sunday 26 October 2016 01:00 GMT"</span><span style="color: #0000ff;">></span>
<span style="color: #008080;"> 6</span>     <span style="color: #0000ff;"><span style="color: #ff00ff;">设置网页缓存过期时间</span><span style="color: #0000ff;">></span>
<span style="color: #008080;"> 7</span>     <span style="color: #0000ff;"><span style="color: #800000;">meta </span><span style="color: #ff0000;">http-equiv</span><span style="color: #0000ff;">="cache-control"</span><span style="color: #ff0000;"> content</span><span style="color: #0000ff;">="no-cache"</span><span style="color: #0000ff;">/></span>
<span style="color: #008080;"> 8</span>     <span style="color: #0000ff;"><span style="color: #800000;">meta </span><span style="color: #ff0000;">http-equiv</span><span style="color: #0000ff;">="pragma"</span><span style="color: #ff0000;"> content</span><span style="color: #0000ff;">="no-cache"</span><span style="color: #0000ff;">/></span>
<span style="color: #008080;"> 9</span>     <span style="color: #0000ff;"><span style="color: #ff00ff;">禁止缓存</span><span style="color: #0000ff;">></span>
<span style="color: #008080;">10</span>     <span style="color: #0000ff;"><span style="color: #800000;">meta </span><span style="color: #ff0000;">http-equiv</span><span style="color: #0000ff;">="set-cookie"</span><span style="color: #ff0000;"> content</span><span style="color: #0000ff;">="Sunday 26 October 2016 01:00 GMT"</span><span style="color: #0000ff;">/></span>
<span style="color: #008080;">11</span>     <span style="color: #0000ff;"><span style="color: #ff00ff;">删除cookie</span><span style="color: #0000ff;">></span>
<span style="color: #008080;">12</span>     <span style="color: #0000ff;"><span style="color: #800000;">meta </span><span style="color: #ff0000;">http-equiv</span><span style="color: #0000ff;">="window-target"</span><span style="color: #ff0000;"> content</span><span style="color: #0000ff;">="_top"</span><span style="color: #0000ff;">/></span>
<span style="color: #008080;">13</span>     <span style="color: #0000ff;"><span style="color: #ff00ff;">打开新窗口,top代表打开一个独立页面</span><span style="color: #0000ff;">></span>
<span style="color: #008080;">14</span>     <span style="color: #0000ff;"><span style="color: #800000;">meta </span><span style="color: #ff0000;">http-equiv</span><span style="color: #0000ff;">="enter-equiv"</span><span style="color: #ff0000;"> content</span><span style="color: #0000ff;">="revealtrans(duration=3,transition=12)"</span><span style="color: #0000ff;">/></span>
<span style="color: #008080;">15</span>     <span style="color: #0000ff;"><span style="color: #ff00ff;">网页过度效果 用css和javascript代替</span><span style="color: #0000ff;">></span>
<span style="color: #008080;">16</span>     <span style="color: #0000ff;"><span style="color: #800000;">meta </span><span style="color: #ff0000;">name</span><span style="color: #0000ff;">="keyword"</span><span style="color: #ff0000;"> content</span><span style="color: #0000ff;">="网页设计"</span><span style="color: #0000ff;">/></span>
<span style="color: #008080;">17</span>     <span style="color: #0000ff;"><span style="color: #ff00ff;">帮搜索引擎,有的搜索引擎会限制关键字,之间用逗号隔开</span><span style="color: #0000ff;">></span>
<span style="color: #008080;">18</span>     <span style="color: #0000ff;"><span style="color: #800000;">meta </span><span style="color: #ff0000;">name</span><span style="color: #0000ff;">="description"</span><span style="color: #ff0000;"> content</span><span style="color: #0000ff;">="学习网页设计的网站"</span><span style="color: #0000ff;">/></span>
<span style="color: #008080;">19</span>     <span style="color: #0000ff;"><span style="color: #ff00ff;">设置页面描述</span><span style="color: #0000ff;">></span>
<span style="color: #008080;">20</span>     <span style="color: #0000ff;"><span style="color: #800000;">meta </span><span style="color: #ff0000;">name</span><span style="color: #0000ff;">="generator"</span><span style="color: #ff0000;"> content</span><span style="color: #0000ff;">="Adobe Dreamweaver CS3"</span><span style="color: #0000ff;">/></span>
<span style="color: #008080;">21</span>     <span style="color: #0000ff;"><span style="color: #ff00ff;">设置编辑工具</span><span style="color: #0000ff;">></span>
<span style="color: #008080;">22</span>     <span style="color: #0000ff;"><span style="color: #800000;">meta </span><span style="color: #ff0000;">name</span><span style="color: #0000ff;">="author"</span><span style="color: #ff0000;"> content</span><span style="color: #0000ff;">="jingsen_liu"</span><span style="color: #0000ff;">/></span>
<span style="color: #008080;">23</span>     <span style="color: #0000ff;"><span style="color: #ff00ff;">设置作者</span><span style="color: #0000ff;">></span>
<span style="color: #008080;">24</span>     <span style="color: #0000ff;"><span style="color: #800000;">meta </span><span style="color: #ff0000;">name</span><span style="color: #0000ff;">="robots"</span><span style="color: #ff0000;"> content</span><span style="color: #0000ff;">="all"</span><span style="color: #0000ff;">/></span>
<span style="color: #008080;">25</span>     <span style="color: #0000ff;"><span style="color: #ff00ff;">限制搜索方式。。。</span><span style="color: #0000ff;">></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span>
Copy after login

页面标签:用于网页文字排版:

 <span style="color: #0000ff;"><span style="color: #ff00ff;">排版标签</span><span style="color: #0000ff;">></span>
    <span style="color: #0000ff;"><span style="color: #ff00ff;">页面注释</span><span style="color: #0000ff;">></span>
    <span style="color: #0000ff;"><span style="color: #800000;">p</span><span style="color: #0000ff;">></span>段落标签<span style="color: #0000ff;"></span><span style="color: #800000;">p</span><span style="color: #0000ff;">></span>
    <span style="color: #0000ff;"><span style="color: #800000;">br</span><span style="color: #0000ff;">/></span>
    <span style="color: #0000ff;"><span style="color: #ff00ff;">换行标签</span><span style="color: #0000ff;">></span>
    <span style="color: #0000ff;"><span style="color: #800000;">hr </span><span style="color: #ff0000;">width</span><span style="color: #0000ff;">="100"</span><span style="color: #ff0000;"> size</span><span style="color: #0000ff;">="100"</span><span style="color: #ff0000;"> color</span><span style="color: #0000ff;">="#9999ff"</span><span style="color: #0000ff;">></span>
    <span style="color: #0000ff;"><span style="color: #ff00ff;">插入一条水平线,设置水平线的宽度和长度,颜色</span><span style="color: #0000ff;">></span>
    <span style="color: #0000ff;"><span style="color: #800000;">hr </span><span style="color: #ff0000;">align</span><span style="color: #0000ff;">="center"</span><span style="color: #0000ff;">></span>
    <span style="color: #0000ff;"><span style="color: #ff00ff;">水平线对齐方式,包括center,left,right,默认为center</span><span style="color: #0000ff;">></span>
    <span style="color: #0000ff;"><span style="color: #800000;">hr </span><span style="color: #ff0000;">noshade</span><span style="color: #0000ff;">></span>
    <span style="color: #0000ff;"><span style="color: #ff00ff;">去除水平线阴影</span><span style="color: #0000ff;">></span>
    <span style="color: #0000ff;"><span style="color: #800000;">center</span><span style="color: #0000ff;">></span>居中标签<span style="color: #0000ff;"></span><span style="color: #800000;">center</span><span style="color: #0000ff;">></span>
    <span style="color: #0000ff;"><span style="color: #800000;">pre</span><span style="color: #0000ff;">></span>文字<span style="color: #0000ff;"></span><span style="color: #800000;">pre</span><span style="color: #0000ff;">></span>
    <span style="color: #0000ff;"><span style="color: #ff00ff;">预设标签,文字按原文档格式显示</span><span style="color: #0000ff;">></span>
    <span style="color: #0000ff;"><span style="color: #800000;">nobr</span><span style="color: #0000ff;">></span>不折行<span style="color: #0000ff;"></span><span style="color: #800000;">nobr</span><span style="color: #0000ff;">></span><span style="color: #0000ff;"><span style="color: #ff00ff;">标签内的文字不会自动换行</span><span style="color: #0000ff;">></span>
    <span style="color: #0000ff;"><span style="color: #800000;">blockquote</span><span style="color: #0000ff;">></span>向右缩进<span style="color: #0000ff;"></span><span style="color: #800000;">blockquote</span><span style="color: #0000ff;">></span>
    <span style="color: #0000ff;"><span style="color: #800000;">div</span><span style="color: #0000ff;">></span>层标签<span style="color: #0000ff;"></span><span style="color: #800000;">div</span><span style="color: #0000ff;">><br><br></span>
    <span style="color: #0000ff;"><span style="color: #ff00ff;">页面文字</span><span style="color: #0000ff;">></span>
    <span style="color: #0000ff;"><span style="color: #800000;">h1</span><span style="color: #0000ff;">></span>标题格式<span style="color: #0000ff;"></span><span style="color: #800000;">h1</span><span style="color: #0000ff;">></span>
    <span style="color: #0000ff;"><span style="color: #ff00ff;">段落标签</span><span style="color: #0000ff;">></span>
    <span style="color: #0000ff;"><span style="color: #800000;">font </span><span style="color: #ff0000;">face</span><span style="color: #0000ff;">="宋体,隶书"</span><span style="color: #ff0000;"> color</span><span style="color: #0000ff;">="blue"</span><span style="color: #ff0000;"> size</span><span style="color: #0000ff;">="4"</span><span style="color: #0000ff;">></span>文字<span style="color: #0000ff;"></span><span style="color: #800000;">font</span><span style="color: #0000ff;">></span>
    <span style="color: #0000ff;"><span style="color: #ff00ff;">设置不同的文字字体,h5中用span代替 </span><span style="color: #0000ff;">></span>
    <span style="color: #0000ff;"><span style="color: #800000;">em</span><span style="color: #0000ff;">></span>斜体字<span style="color: #0000ff;"></span><span style="color: #800000;">em</span><span style="color: #0000ff;">></span>
    <span style="color: #0000ff;"><span style="color: #800000;">strong</span><span style="color: #0000ff;">></span>粗体字<span style="color: #0000ff;"></span><span style="color: #800000;">strong</span><span style="color: #0000ff;">></span>
    <span style="color: #0000ff;"><span style="color: #800000;">u</span><span style="color: #0000ff;">></span>带下滑线文字<span style="color: #0000ff;"></span><span style="color: #800000;">u</span><span style="color: #0000ff;">></span>
    <span style="color: #0000ff;"><span style="color: #800000;">strike</span><span style="color: #0000ff;">></span>删除线文字<span style="color: #0000ff;"></span><span style="color: #800000;">strike</span><span style="color: #0000ff;">></span>
    <span style="color: #0000ff;"><span style="color: #800000;">s</span><span style="color: #0000ff;">></span>删除线文字<span style="color: #0000ff;"></span><span style="color: #800000;">s</span><span style="color: #0000ff;">></span>
    <span style="color: #0000ff;"><span style="color: #800000;">sub</span><span style="color: #0000ff;">></span>下标<span style="color: #0000ff;"></span><span style="color: #800000;">sub</span><span style="color: #0000ff;">></span>
    <span style="color: #0000ff;"><span style="color: #800000;">sup</span><span style="color: #0000ff;">></span>上标<span style="color: #0000ff;"></span><span style="color: #800000;">sup</span><span style="color: #0000ff;">></span>
    <span style="color: #0000ff;"><span style="color: #800000;">code</span><span style="color: #0000ff;">></span>等宽标签,多用于英语<span style="color: #0000ff;"></span><span style="color: #800000;">code</span><span style="color: #0000ff;">></span>
    <span style="color: #ff0000;"> </span>
    <span style="color: #0000ff;"><span style="color: #ff00ff;">空格</span><span style="color: #0000ff;">></span>
    <span style="color: #0000ff;"><span style="color: #800000;">ruby</span><span style="color: #0000ff;">></span>被标注文字<span style="color: #0000ff;"><span style="color: #800000;">rt</span><span style="color: #0000ff;">></span>标注文字<span style="color: #0000ff;"></span><span style="color: #800000;">rt</span><span style="color: #0000ff;">></span><span style="color: #800000;">ruby</span><span style="color: #0000ff;">></span><span style="color: #0000ff;"><span style="color: #ff00ff;">文字标注</span><span style="color: #0000ff;">></span>
    <span style="color: #0000ff;"><span style="color: #800000;">var</span><span style="color: #0000ff;">></span>x<span style="color: #0000ff;"></span><span style="color: #800000;">var</span><span style="color: #0000ff;">></span><span style="color: #0000ff;"><span style="color: #ff00ff;">变量声明</span><span style="color: #0000ff;">></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span>
Copy after login

音频文件为什么不响?

这周处理的一个技术问题是:我引入HTML文件的音频文件不响。下面的代码没有对播放器的格式进行太多设置(代码是正确的),毕竟没有学javascrit呢,现在只能用CSS改改播放器界面大小。

<span style="color: #008080;"> 1</span> <span style="color: #0000ff;"><span style="color: #800000;">html</span><span style="color: #0000ff;">></span>
<span style="color: #008080;"> 2</span> <span style="color: #0000ff;"><span style="color: #800000;">head </span><span style="color: #ff0000;">lang</span><span style="color: #0000ff;">="en"</span> <span style="color: #0000ff;">></span>
<span style="color: #008080;"> 3</span>     <span style="color: #0000ff;"><span style="color: #800000;">meta </span><span style="color: #ff0000;">charset</span><span style="color: #0000ff;">="utf-8"</span><span style="color: #0000ff;">></span>
<span style="color: #008080;"> 4</span>     <span style="color: #0000ff;"><span style="color: #800000;">title</span><span style="color: #0000ff;">></span><span style="color: #800000;">title</span><span style="color: #0000ff;">></span>
<span style="color: #008080;"> 5</span> <span style="color: #0000ff;"></span><span style="color: #800000;">head</span><span style="color: #0000ff;">></span>
<span style="color: #008080;"> 6</span> <span style="color: #0000ff;"><span style="color: #800000;">body</span><span style="color: #0000ff;">></span>
<span style="color: #008080;"> 7</span>     <span style="color: #0000ff;"><span style="color: #800000;">audio </span><span style="color: #ff0000;">src</span><span style="color: #0000ff;">="#"</span><span style="color: #0000ff;">></span>audio player not available.<span style="color: #0000ff;"></span><span style="color: #800000;">audio</span><span style="color: #0000ff;">></span>
<span style="color: #008080;"> 8</span>     <span style="color: #0000ff;"><span style="color: #800000;">audio </span><span style="color: #ff0000;">controls</span><span style="color: #0000ff;">="controls"</span><span style="color: #ff0000;"> autoplay</span><span style="color: #0000ff;">="autoplay"</span><span style="color: #ff0000;"> loop</span><span style="color: #0000ff;">="loop"</span><span style="color: #0000ff;">><span style="color: #800000;">source </span><span style="color: #ff0000;">src</span><span style="color: #0000ff;">="1.mp3"</span><span style="color: #ff0000;"> type</span><span style="color: #0000ff;">="audio/mp3"</span><span style="color: #0000ff;">></span><span style="color: #800000;">audio</span><span style="color: #0000ff;">></span>
<span style="color: #008080;"> 9</span> <span style="color: #0000ff;"></span><span style="color: #800000;">body</span><span style="color: #0000ff;">></span>
<span style="color: #008080;">10</span> <span style="color: #0000ff;"></span><span style="color: #800000;">html</span><span style="color: #0000ff;">></span></span></span></span></span></span></span></span></span>
Copy after login

 

原因:编译器不识别我引入的音频文件的格式,要在编译器里确定音频文件的格式为.mp3。

 


 

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Difficulty in updating caching of official account web pages: How to avoid the old cache affecting the user experience after version update? Difficulty in updating caching of official account web pages: How to avoid the old cache affecting the user experience after version update? Mar 04, 2025 pm 12:32 PM

The official account web page update cache, this thing is simple and simple, and it is complicated enough to drink a pot of it. You worked hard to update the official account article, but the user still opened the old version. Who can bear the taste? In this article, let’s take a look at the twists and turns behind this and how to solve this problem gracefully. After reading it, you can easily deal with various caching problems, allowing your users to always experience the freshest content. Let’s talk about the basics first. To put it bluntly, in order to improve access speed, the browser or server stores some static resources (such as pictures, CSS, JS) or page content. Next time you access it, you can directly retrieve it from the cache without having to download it again, and it is naturally fast. But this thing is also a double-edged sword. The new version is online,

How do I use HTML5 form validation attributes to validate user input? How do I use HTML5 form validation attributes to validate user input? Mar 17, 2025 pm 12:27 PM

The article discusses using HTML5 form validation attributes like required, pattern, min, max, and length limits to validate user input directly in the browser.

How to efficiently add stroke effects to PNG images on web pages? How to efficiently add stroke effects to PNG images on web pages? Mar 04, 2025 pm 02:39 PM

This article demonstrates efficient PNG border addition to webpages using CSS. It argues that CSS offers superior performance compared to JavaScript or libraries, detailing how to adjust border width, style, and color for subtle or prominent effect

What are the best practices for cross-browser compatibility in HTML5? What are the best practices for cross-browser compatibility in HTML5? Mar 17, 2025 pm 12:20 PM

Article discusses best practices for ensuring HTML5 cross-browser compatibility, focusing on feature detection, progressive enhancement, and testing methods.

What is the purpose of the <datalist> element? What is the purpose of the <datalist> element? Mar 21, 2025 pm 12:33 PM

The article discusses the HTML &lt;datalist&gt; element, which enhances forms by providing autocomplete suggestions, improving user experience and reducing errors.Character count: 159

What is the purpose of the <meter> element? What is the purpose of the <meter> element? Mar 21, 2025 pm 12:35 PM

The article discusses the HTML &lt;meter&gt; element, used for displaying scalar or fractional values within a range, and its common applications in web development. It differentiates &lt;meter&gt; from &lt;progress&gt; and ex

What is the purpose of the <progress> element? What is the purpose of the <progress> element? Mar 21, 2025 pm 12:34 PM

The article discusses the HTML &lt;progress&gt; element, its purpose, styling, and differences from the &lt;meter&gt; element. The main focus is on using &lt;progress&gt; for task completion and &lt;meter&gt; for stati

How do I use the HTML5 <time> element to represent dates and times semantically? How do I use the HTML5 <time> element to represent dates and times semantically? Mar 12, 2025 pm 04:05 PM

This article explains the HTML5 &lt;time&gt; element for semantic date/time representation. It emphasizes the importance of the datetime attribute for machine readability (ISO 8601 format) alongside human-readable text, boosting accessibilit

See all articles