当前位置: 首页 > 网络学院 > 网页制作基础教程 > WEB设计综合 > HTML基础
Basic HTML stucture looks similar to this:
HTML基础框架书写如下:
<html>
<head>
</head>
<body>
</body>
</html>
Place your page's main content in between <body> and </body> (text, images, links, etc...) Place things like CSS, meta tags, and titles in between <head> and </head>. To change the background color of your page, replace <body> with:
将网站的主要内容放置于<body>和</body>标签当中(内容可以包括:文本、图片、链接等等)。将CSS、meta标签和标题放置在<head>和<head>标签中。将页面中的body用下面的代码替换,从而改变背景颜色:
<body bgcolor="red"> |
In other words, you are adding bgcolor="red". You can change red to any color you like (blue, silver, black, orange) or, you can use HEX codes to get a more specific color. For example, #000000 is black, and #FFFFFF is white. HEX codes consist of six characters, either letters or numbers. Here is a HEX code chart:
换句话说,你添加了bgcolor="red"。你可以通过修改“red[红]”属性将页面背景改变成你自己喜欢的颜色(如blue [蓝]、silver [银]、black [黑]、orange [橙]);或者,你还可以使用16进制色彩代码来获取更多的颜色。如:#000000代表黑色、#FFFFFF代表白色。16进制代码由六位字符组成,每个字母都是一个数字。下面列举了16进制代码图表:
To use an image as your background, copy the code below, and replace the <body> tag with it.
你可以通过复制下面的代码将背景设置为图像,放置在<body>标签中:
<body background="IMAGE URL"> |
Replace IMAGE URL with the url of the image you want as your background. To change the color of your text, use the code below:
将“IMAGE URL”替换为具体的图像所在的链接路径,从而放置你喜欢的背景图片。你可以通过改变下面的文本代码来改变文本颜色:
<font color="#000000"> text text text</font> |
Replace #000000 with the HEX code or color you want, and replace "text text text" with your text. To create an image, use the code below:
将“#
<img src="IMAGE URL"> |
Replace IMAGE URL with the url of the image you want to show up.
将“IMAGE URL”替换为具体的图像url。