Getting Started: A brief introduction to HTML's basic tags and attributes

Getting Started: A brief introduction to HTML's basic tags and attributes

HTML is made up of tags and attributes, which are used together to tell the browser how to display a page. A logo is used to reference a document component such as a text or an image. Attributes are options for a logo that are modified in the logo, such as color, alignment, height and width. Many tags appear in pairs, for example, there is <TITLE> and there is </TITLE>. The first one indicates the beginning and the second one indicates the end, and the content is placed between the two.
Basic structure mark
< HTML > ----------Indicates that the file is an HTML file
<HEAD> ----------Contains the title of the file, used scripts, style definitions, etc.
<TITLE>HELLO WORLD! </TITLE> - contains the title of the file, which appears in the browser title bar
<HEAD> ----------</HEAD> end mark
<BODY> --------Place all the signs and attributes of the information displayed in the browser, and the content is displayed in the browser</BODY>
</ HTML > ----------< HTML > end tag
Other main symbols All the following symbols are used in <BODY></BODY>
<A HREF="…"></A> ----------Link symbol, “…” is the link file address
<IMG SRC="…"> ----------Displays the image logo, "…" is the address of the image
<BR> ----------Line break symbol
<P> ----------Segment mark
<B></B> ----------Use boldface
<I></I> ----------Use italics
<HR> ----------Horizontal line drawing
<TABLE></TABLE> ----------Defines a table, an important symbol in HTML
<TR></TR> ----------Defines the rows of a table, used in <TABLE></TABLE>
<TD></TD> ----------Table cell, used in <TR></TR>
<FONT></FONT> ----------font style logo
Usage of properties:
Attributes are used to modify tags and are placed inside the start tag.
For example: the attribute bgcolor="BLACK" means the background color is black. Examples of reference attributes: <BODY bgcolor="BLACK"></BODY> means the page background color is black, <TABLE bgcolor="BLACK"></TABLE> means the table background color is black.
Common properties: alignment properties range properties
ALIGN=LEFT Left alignment (default) WIDTH=width of object in pixels or percentage
ALIGN=CENTER Center HEIGHT=pixel value or percentage object height
ALIGN=RIGHT Right alignment color attribute
COLOR=#RRGGBB Foreground color reference color table
BGCOLOR=#RRGGBB Background color

<<:  Analysis of the implementation method of modifying the default network segment of Docker

>>:  MySQL kill command usage guide

Recommend

Style trigger effect of web page input box

<br />This example mainly studies two parame...

WeChat applet implements user login module server construction

I chose node.js to build the server. Friends who ...

Linux file and user management practice

1. Display the files or directories in the /etc d...

Quickly solve the problem of slow startup after Tomcat reconfiguration

During the configuration of Jenkins+Tomcat server...

Problems and solutions encountered when installing mininet on Ubuntu 16.04.4LTS

Mininet Mininet is a lightweight software defined...

JS implements WeChat's "shit bombing" function

Hello everyone, I am Qiufeng. Recently, WeChat ha...

4 Scanning Tools for the Linux Desktop

While the paperless world has not yet emerged, mo...

Usage and best practice guide for watch in Vue3

Table of contents Preface🌟 1. API Introduction 2....

How to use Dockerfile to create a mirror of the Java runtime environment

The current environment is: Centos 7.5 docker-ce ...

Detailed example of creating and deleting tables in MySQL

The table creation command requires: The name of...

How to draw special graphics in CSS

1. Triangle Border settings Code: width: 300px; h...

Idea configures tomcat to start a web project graphic tutorial

Configure tomcat 1. Click run configuration 2. Se...

How to set static IP for Ubuntu 18.04 Server

1. Background Netplan is a new command-line netwo...

Summary of methods for querying MySQL user permissions

Introduce two methods to view MySQL user permissi...

Mysql master-slave synchronization Last_IO_Errno:1236 error solution

What is the reason for the Last_IO_Errno:1236 err...