Home>Article>Web Front-end> Everything you need to know to get started with HTML

Everything you need to know to get started with HTML

php中世界最好的语言
php中世界最好的语言 Original
2018-03-09 10:11:28 1747browse

This time I will bring you what you must know to get started with HTML. What are theprecautionsthat you must know when getting started with HTML. Here are practical cases, let’s take a look.

1. Introduction

1. Hyper Text Mark Language (Hyper Text Mark Language) is a standard markup language for creating web pages, which is parsed by the browser.

2. The document suffix is .html or htm, and html files are also called web pages;

3. HTML does not support spaces, carriage returns, and tabs, and they will be parsed into A blank character;

4,HTML tagusually appears in pairs, format: b6868bec2c3a82e89af256f67eca2382dataa547c32f89c356844fdc839abfc46ca2;

5, only 89d8c84e59f5eec803d3fabb2ed6bbbc 36cc49f0c466276486e50c850b7e4956 tag will be displayed in the browser;

6. HTML language is not case-sensitive;

7. 437adf9abe291aebc23d493fb646ba2e

8. helloworld!

                helloworld!   
        helloworld!    

2. Tags

(1) Basic

  HTML页面根元素  
 包含文档的元数据(meta)    文档标题,存书签时也显示此内容   包含了页面的可见内容 

大标题,往下每一级标题依次h2,h3的类推,最小标题是h6

段落 链接,中间内容为显示内容,例:百度;如果target="_blank",链接会在新的窗口中打开 图像,alt属性可在浏览器无法载入图像时显示文本 框架,使用src属性指向不同的URL,达到一个窗口显示多个页面的目的;
换行符,属于一个空元素,即没有内容的元素,空元素是在开始标签中关闭的

分割线
区块,可用于组合其他元素的容器;可使用它进行布局; 用来组合文档中的行内元素; 声明html版本,不区分大小写

(2) Text format tag

  加粗显示之间的文字,也可用     斜体,也可用   放大   缩小   下标文字   上标文字   下划线   删除线

(3) Citation, quotation and tag definition

      缩写,被缩写的内容用title属性来体现 
     定义地址,通常被包含在
元素的其他信息中      定义文字方向,默认值为从左到右,可用dir="rtl"来改为从右到左显示
定义长的引用,可用cite="URL"来规定引用的来源       定义短的引用,属性cite     定义引用、引证       定义一个定义项目

(4)

1“计算机输出”标签1   定义计算机代码 2   定义键盘码 3   定义计算机代码样本 4   定义变量 5 
定义预格式文本
      

(5) The head element can contain elements

     定义了页面的默认链接地址,通过href属性来实现  定义了文档和外部资源的关系,通常可用rel,type,href等属性  定义了文档中的元数据,可有name,content,charset等属性  用于加载脚本文件  定义了HTML文档的样式文件

(6)Picture tag

1  2  定义带有可点击区域的图像,可有shape,coords等属性,来画各种图形 3  带有可点击区域图像映射,必须有name属性,中间可包含area元素;

(7) Table tag

定义表格,表格的所有内容都应放在里边;属性border=“1”定义了边框大小 表格标题 表格每一行的内容; 一个单元格的内容; 表格第一行;   表头内容,即第一行每一格内容; 表格主体; 表格最后一行; 表格列的组; 表格列的属性;

I believe you have mastered the method after reading the case in this article. For more exciting information, please pay attention to other php Chinese websites related articles!

Related reading:

Use React to complete an image carousel component

##Use 4a249f0d628e2318394fd9b75b4636b1 and paragraph01ffcd5d1a840d2341909ced6bafa76c Write a Sanmao quotation

The above is the detailed content of Everything you need to know to get started with HTML. For more information, please follow other related articles on the PHP Chinese website!

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
Previous article:HTML5 collection Next article:HTML5 collection