HTML tutorial, easy to learn HTML language

HTML tutorial, easy to learn HTML language

1. <body background=image file name bgcolor=color text=color link=color vlink=color alink=color>...</body> tag attributes:
background: Set the background image of the web page. bgcolor: Set the background color of the web page. text: Set the text color. link: Sets the color of hypertext links that have not been visited. Default color is blue. vlink: Sets the color of visited hypertext links. Default color is blue. alink: Sets the color of a hypertext link at the moment it is visited. Default color is blue.
2. Color code table:
Black-#000000 Blue-#000FF Brown-#A52A2A
Cyan-#00FFFF Gray-#808080 Green-#008000
Ivory-#FFFFF0 Orange-#FFA500 Pink-#FFC0CB
Red-#FF0000 White-#FFFFFF Yellow-#FFFF00
crimson-#CD061F greenyellow-#0B6EFF
Water blue-dodgerblue-#0B6EFF Lavender-#DBDBF8
3. Comment mark: <!-- Comment content-->
4. Paragraph and word tags:
(1) Title text mark:
<hn align=left|center|right>Title text</hn> Note: n is the text size, value 1-6, 1 is the largest.
(2) Text mark:
<font size=1-7 face=font name color=color>Set text</font> Note: The maximum size is 7.
(3) Set the font:
<b>..</b>: bold<i>..</i>: italic<u>..</u>: underlined
<tt>..</tt>: Standard printer font<strike>..</strike>: Strikethrough
<big>..</big>: Large font text<small>..</small>: Small font text
5. Forced line break mark: text<br>
6. Forced paragraph break tag: <p>
7. Partition display tag: <div align=left|center|right>text or image</div>
8. Horizontal line mark: <hr align=alignment size=thickness width=length color=color noshade> Note: noshade is set for flat display.
9. Special symbols: <-&lt; >-&gt; "-&quot; space-&nbsp;
10. Create a hyperlink:
(1) Hotspot Marking:
<a href=address/name=string target=open window method>hotspot</a> Note: href and name cannot be used at the same time in the URL.
Open window mode:
target="_blank" or target="new": open in a new window.
target="_parent": Displays in the immediate parent frame window.
target="_self":Open in the current window. (default)
target="_top": Display in a window without a frame.
target="frame name": Display in the specified frame window.
(2) Create links to other pages:
<a href="path/filename.html">Hotspot</a> Note: How to return to the previous directory: ../
(3)Tag link:
<a href="#Marker Name">Hotspot</a>---------------------<a name="Marker Name">..</a>
11. Image tag: <img src=file name alt=description width=x height=y border=n hspace=h vspace=v align=alignment>
12. Use pictures as hyperlinks: <a href="address"><img src=picture file name></a>

<<:  How to add vim implementation code examples in power shell

>>:  A brief discussion on four solutions for Vue single page SEO

Recommend

How to bind domain name to nginx service

Configure multiple servers in nginx.conf: When pr...

JavaScript CollectGarbage Function Example

First, let's look at an example of memory rel...

A brief introduction to mysql mycat middleware

1. What is mycat A completely open source large d...

Implementing a simple calculator based on JavaScript

This article shares the specific code of JavaScri...

Detailed explanation of vue simple notepad development

This article example shares the specific code of ...

15 JavaScript functions worth collecting

Table of contents 1. Reverse the numbers 2. Get t...

Summary of the differences between Mysql primary key and unique key

What is a primary key? A primary key is a column ...

How to use the EXPLAIN command in SQL

In daily work, we sometimes run slow queries to r...

Vue echarts realizes dynamic display of bar chart

This article shares the specific code of vue echa...

MySQL 5.7.17 installation and use graphic tutorial

MySQL is a relational database management system ...

Should nullable fields in MySQL be set to NULL or NOT NULL?

People who often use MySQL may encounter the foll...

Analysis of the advantages and disadvantages of MySQL stored procedures

MySQL version 5.0 began to support stored procedu...

MySQL 5.7.17 installation and configuration tutorial for Mac

1. Download MySQL Click on the official website d...