search
HomeWeb Front-endHTML TutorialHTML notes (1)_html/css_WEB-ITnose

<!DOCTYPE html><html><head><title>文档标题</title></head><body><h1 id="我的第一个标题">我的第一个标题</h1><p>我的第一个段落。</p></body></html>

这是HTML最基本的结构,HTML 不是一种编程语言,而是一种标记语言

其中:

  • DOCTYPE 声明了文档类型
  • 位于标签 为文档标题
  • 位于标签 与 描述了文档类型
  • 位于标签 与 为可视化网页内容
  • 位于标签

    作为一个标题使用
  • 位于标签

    作为一个段落显示
  •  

    1.基本标签的含义

    定义一个超链接

    最大的标题


    . . .


    . . .


    . . .


    . . .

    最小的标题


    这是一个段落。



    (换行)

    (水平线)

     

    2.文本格式化

    粗体文本
    计算机代码
    强调文本
    斜体文本
    键盘输入 

    预格式化文本

    更小的文本
    重要的文本

    (缩写)
    (联系信息)
    (文字方向)
    (从另一个源引用的部分)
    (工作的名称)
    (删除的文本)
    (插入的文本)
    (下标文本)
    (上标文本)

     

    3.链接

    普通的链接: 链接文本
    图像链接: 替换文本
    邮件链接: 发送e-mail

    书签:
    提示部分
    跳到提示部分

     

    4.图片

    替换文本

     

    5.样式、区块



    文档中的块级元素

    文档中的内联元素

     

    6.列表

    (1)无序列表


       
    • 项目

    •  
    • 项目

     

    (2)有序列表


       
    1. 第一项

    2.  
    3. 第二项

    (3)定义列表


     
    项目 1

       
    描述项目 1

     
    项目 2

       
    描述项目 2

     

    7.表格


     
       
       
     
     
       
       
     
    表格标题 表格标题
    表格数据 表格数据

     

    8.框架

     

    9.表单










     

    10.字符实体

      空格    
    小于号 08a4a2ebf1b67a599f6bb509e7e81493 >
    & 和号 & &
    " 引号 " "
    ' 撇号  ' (IE不支持) '
    ¢ ¢
    £ £ £
    ¥ 日元 ¥ ¥
    ? 欧元
    § 小节 § §
    © 版权 © ©
    ® 注册商标 ® ®
    ? 商标
    × 乘号 × ×
    ÷ 除号 ÷ ÷

    Statement
    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
    HTML, CSS, and JavaScript: Examples and Practical ApplicationsHTML, CSS, and JavaScript: Examples and Practical ApplicationsMay 09, 2025 am 12:01 AM

    The roles of HTML, CSS and JavaScript in web development are: 1. HTML is used to build web page structure; 2. CSS is used to beautify the appearance of web pages; 3. JavaScript is used to achieve dynamic interaction. Through tags, styles and scripts, these three together build the core functions of modern web pages.

    How do you set the lang attribute on the  tag? Why is this important?How do you set the lang attribute on the tag? Why is this important?May 08, 2025 am 12:03 AM

    Setting the lang attributes of a tag is a key step in optimizing web accessibility and SEO. 1) Set the lang attribute in the tag, such as. 2) In multilingual content, set lang attributes for different language parts, such as. 3) Use language codes that comply with ISO639-1 standards, such as "en", "fr", "zh", etc. Correctly setting the lang attribute can improve the accessibility of web pages and search engine rankings.

    What is the purpose of HTML attributes?What is the purpose of HTML attributes?May 07, 2025 am 12:01 AM

    HTMLattributesareessentialforenhancingwebelements'functionalityandappearance.Theyaddinformationtodefinebehavior,appearance,andinteraction,makingwebsitesinteractive,responsive,andvisuallyappealing.Attributeslikesrc,href,class,type,anddisabledtransform

    How do you create a list in HTML?How do you create a list in HTML?May 06, 2025 am 12:01 AM

    TocreatealistinHTML,useforunorderedlistsandfororderedlists:1)Forunorderedlists,wrapitemsinanduseforeachitem,renderingasabulletedlist.2)Fororderedlists,useandfornumberedlists,customizablewiththetypeattributefordifferentnumberingstyles.

    HTML in Action: Examples of Website StructureHTML in Action: Examples of Website StructureMay 05, 2025 am 12:03 AM

    HTML is used to build websites with clear structure. 1) Use tags such as, and define the website structure. 2) Examples show the structure of blogs and e-commerce websites. 3) Avoid common mistakes such as incorrect label nesting. 4) Optimize performance by reducing HTTP requests and using semantic tags.

    How do you insert an image into an HTML page?How do you insert an image into an HTML page?May 04, 2025 am 12:02 AM

    ToinsertanimageintoanHTMLpage,usethetagwithsrcandaltattributes.1)UsealttextforaccessibilityandSEO.2)Implementsrcsetforresponsiveimages.3)Applylazyloadingwithloading="lazy"tooptimizeperformance.4)OptimizeimagesusingtoolslikeImageOptimtoreduc

    HTML's Purpose: Enabling Web Browsers to Display ContentHTML's Purpose: Enabling Web Browsers to Display ContentMay 03, 2025 am 12:03 AM

    The core purpose of HTML is to enable the browser to understand and display web content. 1. HTML defines the web page structure and content through tags, such as, to, etc. 2. HTML5 enhances multimedia support and introduces and tags. 3.HTML provides form elements to support user interaction. 4. Optimizing HTML code can improve web page performance, such as reducing HTTP requests and compressing HTML.

    Why are HTML tags important for web development?Why are HTML tags important for web development?May 02, 2025 am 12:03 AM

    HTMLtagsareessentialforwebdevelopmentastheystructureandenhancewebpages.1)Theydefinelayout,semantics,andinteractivity.2)SemantictagsimproveaccessibilityandSEO.3)Properuseoftagscanoptimizeperformanceandensurecross-browsercompatibility.

    See all articles

    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

    Video Face Swap

    Video Face Swap

    Swap faces in any video effortlessly with our completely free AI face swap tool!

    Hot Tools

    Safe Exam Browser

    Safe Exam Browser

    Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

    ZendStudio 13.5.1 Mac

    ZendStudio 13.5.1 Mac

    Powerful PHP integrated development environment

    SecLists

    SecLists

    SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

    PhpStorm Mac version

    PhpStorm Mac version

    The latest (2018.2.1) professional PHP integrated development tool

    MinGW - Minimalist GNU for Windows

    MinGW - Minimalist GNU for Windows

    This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.