HTML Editing Basics (A Must-Read for Newbies)

HTML Editing Basics (A Must-Read for Newbies)

Open DREAMWEAVER and create a new HTML. .


Properties of body:

bgcolor page background color

background wallpapers, pictures

text color

topmargin top margin

leftmargin left margin

rightmargin right margin

bottommargin bottom margin

Format control tags:

<font color="" face="" size=""></font>

Control the color, font, and size of the font separately.

<b></b> Bold font

<strong></strong> Bold font

Tilt

Tilt

<u></u> Underline

<center></center> Center

<br> or <br/> is equivalent to carriage return

Indicates space, Ctrl+shift+space


Content container tags:

<h1></h1> Title, will automatically wrap. The HTML title is

. . . Defined by tags such as <h1> to <h6>.

<h6></h6>

<p></p> Paragraph tags (blank lines between paragraphs)

<div></div> layer tag (occupies one line by default)

<span></span> layer tags (the default is to use as much space as possible)

<ol type="1"> Ordered list, the serial numbers are 1, 2, 3..., the serial number format can be changed in quotation marks

<li>Content<li>

<li>Content<li>

</ol> If the ol above is changed to ul, it will become an unordered list


"../" indicates the parent directory

"./" means the current directory

Relative path: Start searching from the current page.

Absolute path: Start searching from the root of the website. "/", represents the root of the website.

Hyperlink Tags:

<a href="Hyperlink address" target="_blank">Hyperlink text</a> --Open in a new window

You can also find the directory on the current page and click the hyperlink on the directory to automatically jump to a certain place on the current page.


Image Tags:

<img src="Image address" alt="Text" width="" height="" title="Description text" />

Setting one of the height and width will keep the original proportion.

When the image cannot be loaded, alt displays text, which can also help search engines to search.

Title can add a description of the image, and the description will be displayed when the mouse is placed on the image.


sheet:

<table></table>Table

width: width. Can be expressed in pixels or percentage. 960 pixels are commonly used.

border: border, the commonly used value is 0.

cellpadding: The distance between the content and the border. The commonly used value is 0.

cellspacing: The spacing between cells, the commonly used value is 0.

algin: Alignment.

bgcolor: background color.

background: background image.


<tr></tr> line

align: The horizontal alignment of a row of content.

valign: The vertical alignment of a row of content.

height: row height.

bgcolor: background color.

background: background image.

<td></td>Cell

<th></th>Header, the cell content is automatically centered and bolded

align: Alignment of cell contents.

valign: The vertical alignment of the cell's contents.

width: cell width.

height: cell height.

bgcolor: background color.

background: background image.

Content must be placed in cells, cells must be placed in rows, and rows must be placed in tables.

When setting the cell row height or column height, the corresponding rows or columns will be affected at the same time.

Cell merging: (It is recommended to use table nesting as much as possible)

colspan="n" merges cells in the same row (the corresponding columns need to be subtracted when writing code later)

rowspan="n" merges cells in the same column (subtracting the corresponding column from the second row)

The above article "HTML Editing Basics (Must-Read for Newbies)" is all the content that the editor shares with you. I hope it can give you a reference. I also hope that you will support 123WORDPRESS.COM.

<<:  Understanding of haslaylout and bfc parsing

>>:  javascript Blob object to achieve file download

Recommend

Nest.js hashing and encryption example detailed explanation

0x0 Introduction First of all, what is a hash alg...

Summary of the differences between get and post requests in Vue

The operating environment of this tutorial: Windo...

Detailed code for implementing 3D tag cloud in Vue

Preview: Code: Page Sections: <template> &l...

Summary of three ways to create new elements

First: via text/HTML var txt1="<h1>Tex...

Docker builds python Flask+ nginx+uwsgi container

Install Nginx First pull the centos image docker ...

How to submit the value of a disabled form field in a form Example code

If a form field in a form is set to disabled, the ...

jQuery implements the mouse drag image function

This example uses jQuery to implement a mouse dra...

Summary of MySQL character sets

Table of contents Character Set Comparison Rules ...

Detailed steps to install CentOS7 system on VMWare virtual machine

Pre-installation work: Make sure vmware workstati...

Example of how to enable Slow query in MySQL

Preface Slow query log is a very important functi...