总结下今天学的HTML知识、单词

跑马灯标记

<marquee></marquee>
属性:
direction:滚动的方向 取值:left 、right、 up、 down
behavior:滚动的方式 取值:scroll、alternate、slide
width:设置宽度
height:设置高度
bgColor:设置背景颜色
scrollAmount:滚动的步长值 值越大 速度越快

<meta>它主要是设置字符编码 网页刷新 网页跳转 SEO优化

设置字符编码:  <meta http-equiv="content-type" content="text/html;charset=UTF-8">
实现网页刷新:  <meta http-equiv="refresh" content="时间">
使用网页的跳转: <meta http-equiv="refresh" content="时间;跳转页面链接"">
SEO优化:    <meta name="keywords" content="关键字列表"/>
          <meta name="description" content="网页描述">

在网页上显示一个图标 通过<link>引入
<link rel='icon' href='图片文件名称'>

超链接:

<a></a>
属性:
href:链接到指定的URL地址
target:打开文件的方式
_self (在本窗口 默认)
_blank 在新窗口打开
_parent 在父级窗口打开(上一级窗口)
_top 在顶级窗口打开
name:名称
id:名称
空链接:
<a href="#">内容</a>
<a href="javascript:void(0)">内容</a>

锚点链接

1、先要定义一个锚点链接
<a name="锚点名"></a>或者<a id="锚点名"></a>
2、要找到定义的这个锚点链接
<a href="#锚点名">内容</a>
定义锚点时name的属性值与id的一样时 优先id

载入图片

<img />
属性:
src:图片的URL地址
title:当鼠标放图片上显示的文字信息
alt:当图片不存在显示的文字信息
width:设置图片的宽度
height:设置图片的高度

html_day2的更多相关文章

  1. Web前端之html_day2

    1.meta标签 1 2 3 <metacharset="UTF-8"/> <metaname="Keywords" content=&quo ...

随机推荐

  1. 用SNMP协议实现系统信息监控--Windows Server 2008

    简单了解: SNMP简单网络管理协议,是一种属于应有层的协议,主要有三个部分组成,被管理部分.代理部分和网络管理系统. 被管理部分是一个网络节点,也称为网络单元.SNMP代理是被管理设备上的一个网络管 ...

  2. javascript 模仿 html5 placeholder

    <form action="?action=deliver" method="post" class="deliver-form"&g ...

  3. js+图片实现图片flash效果

    var pic_width=685; //图片宽度 var pic_height=225; // 图片高度 var button_pos=4; //按扭位置 1左 2右 3上 4下 var stop_ ...

  4. GDI+(Graphics Device Interface)

    1创建画布(创建Graphics对象) Bitmap bitmap = new Bitmap(80,80); Graphics g=Graphics.FromImage(bitmap); 2创建Pen ...

  5. win8 安装myeclipse 失败 MyEclipse ForSpring 安装失败

    好像是main方法.jar无法载入之类的.. 可能是权限的问题哦.. 使用管理员权限试一下..

  6. python3.4控制用户输入与输出

    一.输入 1.函数格式:input() 2.函数功能:接受一个标准输入数据,返回string类型.ctrl+z结束输入. 3.实例: 默认input():等待一个任意字符的输入 str=input(‘ ...

  7. hdu 3832 Earth Hour

    http://acm.hdu.edu.cn/showproblem.php?pid=3832 #include <cstdio> #include <iostream> #in ...

  8. LeetCode_String to Integer (atoi)

    Implement atoi to convert a string to an integer. int atoi (const char * str); Convert string to int ...

  9. LeetCode_Word Search

    Given a 2D board and a word, find if the word exists in the grid. The word can be constructed from l ...

  10. 微软在MSDN中更新了Win8.1批量授权版镜像(中文版更新完毕&版本说明)

    微软在MSDN中更新了Win8.1大客户专业版和企业版镜像,零售版镜像(即专业版+核心版二合一镜像)没有更新,依然是9月份发布的版本.已证实,新的批量授权版镜像是集成了GA Rollup A更新,并且 ...