


Sports students learn programming--html learning_html/css_WEB-ITnose
HTML learning
1. Introduction to HTML (just understand it)
HTML (Hyper Text Markup Language):
HTML is the abbreviation of Hyper Text Markup Language and is the most basic web page language
HTML versions:
2.0 (IETF), 3.0 (W3C), 4.01 (W3C), 5.0 (W3C)
IETF: Internet Engineering Task Force
W3C: World Wide Web Consortium
Characteristics of HTML:
is a language defined by tags. Codes are composed of tags. Codes are not case sensitive.
starts with and ends with
It consists of two parts: the header part
The head part is to add some auxiliary or attribute information to the HTML page, and the content inside it will be the most Load
first. The body part is where the page data is actually stored.
HTML tags:
Most tags have start tags and End tag . For example:
Paragraph
There are some tags that have only a single function or there is no content to be modified. They can end within the tag. For example: line break
dividing line
can also be written as
slashes can be omitted
Attributes in HTML tags:
Want To perform richer operations on the content modified by tags, use the attributes in the tags
By changing the attribute values, more effect options are added
Use "=" between the attribute name and attribute value Connection
Attribute values can use double quotes, single quotes, or no quotes. Generally, double quotes (or company regulations writing standards) are used.
2. Header tag
The title of the page
Target: The default target for all hyperlinks on the page
content ="Java,.Net,Android,iOS">
See when crawling by spiders, it is related to search engine SEO
html; charset=utf-8"> Inform the browser of the content, type, and encoding of this page Refresh to a certain page after three seconds
3. Font
Font tag:
< font size=5 color=red>
Font tag example FF0000 is a group of two numbers, arranged according to red, green and blue For example: #FF0000 means red, #00FF00 means green
Title tag
, & Lt; h2 & gt; ... & lt; h6 & gt;: The title is commonly used in the text. 🎜>4. List
No tags:
Number tags:
> Symbol tag:
not not been
5、超链接
链接标签:
<span style="font-size:14px;"><span style="white-space:pre"> </span> <span style="font-size:18px;"> <a href="http://www.maomao.com" target="_blank">猫猫学编程</a></span></span>
Copy after login href:要链接的地址
target:显示位置
<span style="font-size:14px;"><span style="white-space:pre"> </span><a name="mark" /></span>
Copy after login 在页面的某个位置做出标记
<span style="font-size:14px;"><span style="white-space:pre"> </span><a href="#mark">跳转到标记</a></span>
Copy after login 点击链接跳转到标记位置
6、图像
图像标签
:
<span style="font-size:14px;"><span style="white-space:pre"> </span><img src="1.jpg" align="right" border="3" alt="图片说明文字" /> </span>
Copy after login src: 图片路径
align: 对齐方式
border: 边框粗细
图像地图
<span style="font-size:14px;"><span style="white-space:pre"> </span><img src="Sunset.jpg" alt="图片说明文字" usemap="#Map" /> <map name="Map"> <area shape="rect" coords="50,59,116,104" href="1.html" /> <area shape="circle" coords="118,203,40" href="2.html" /> </map></span>
Copy after login
7、框架
框架集合标签
No tags:
Number tags:
> Symbol tag:
not not been
5、超链接
链接标签:
<span style="font-size:14px;"><span style="white-space:pre"> </span> <span style="font-size:18px;"> <a href="http://www.maomao.com" target="_blank">猫猫学编程</a></span></span>
target:显示位置
<span style="font-size:14px;"><span style="white-space:pre"> </span><a name="mark" /></span>
<span style="font-size:14px;"><span style="white-space:pre"> </span><a href="#mark">跳转到标记</a></span>
6、图像
图像标签:
<span style="font-size:14px;"><span style="white-space:pre"> </span><img src="1.jpg" align="right" border="3" alt="图片说明文字" /> </span>
align: 对齐方式
border: 边框粗细
图像地图
<span style="font-size:14px;"><span style="white-space:pre"> </span><img src="Sunset.jpg" alt="图片说明文字" usemap="#Map" /> <map name="Map"> <area shape="rect" coords="50,59,116,104" href="1.html" /> <area shape="circle" coords="118,203,40" href="2.html" /> </map></span>
7、框架
框架集合标签