HTML学习笔记——head、body及简单标签

1> title标签、网站关键词、网站描述、实现百度网的跳转

2> 单标签、对标签、p标签

DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        
        
        <title>我是titletitle>
        
        
        <meta name='keywords' content="切糕,卖切糕,卖切糕"/>

        
        <meta name='description' content="本网站介绍,要有可读性,100-200字"/>

        
        <meta http-equiv='refresh' content="5;url='http://www.baidu.com'"/>
    head>



    <body>

        
        <img src="dog.jpg" width="100" height="150" title="图片"/>
        
        
        <a href="http://www.baidu.com" id="link" class="test">百度a>

        <strong>我是strong标签strong>
        <p>我是p标签p>

    body>
html>

 3> h1标签、h2标签、font标签、加粗文字、下划线、嵌套

DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档title>
head>

<body>

    
    <h1>我是p标签h1>

    
    <h2>我是p标签h2>

    
    <font color="red" size="7">我是font标签font>
    
    
    <strong>我是strong标签strong>

    
    <font color="red"><u><del>红色文字加下划线del>u>font>

body>
html>

 HTML学习笔记——head、body及简单标签_第1张图片

你可能感兴趣的:(HTML学习笔记——head、body及简单标签)