Home Web Front-end HTML Tutorial HTML Beginner's Guide (7)

HTML Beginner's Guide (7)

Dec 23, 2016 pm 02:46 PM
html

URLs
World Wide Web uses Uniform Resource Locators (URLs) to point to files on other servers. A URL includes the type of resource being accessed (e.g., Web, gopher, WAIS), the address of the server, and the location of the file. Syntax The format is:

scheme://host.domain [:port]/path/ filename

where scheme is one of the following

file
A file in the local system
ftp
A file in an anonymous FTP server
http
World File in Wide Web server
gopher
File in Gopher server
WAIS
File in WAIS server
news
A newsgroup newsgroup of Usenet
telnet
Connection to a Telnet-based service
Port The port number can usually be omitted. (Unless you are told to use it, ignore it)

For example, link to this guide in your document:


NCSA's Beginner's Guide to HTML


It marks the text NCSA's Beginner's Guide to HTML as a hyperlink, connected to the current document.

The link to the specified section
The anchor chain is also Can be used to guide the reader to a specific area in a document (either the current document or another document), not necessarily to the default top position. This type of anchor is often called a named anchor because When creating links, you need to insert HTML names into the document.

This guide is a good example of using named anchor chains in the same document. It makes a document easier to print. But when you just want to know about HTML Navigating through such a (long) document can be time consuming when only a portion of the information is included. Internal hyperlinks are used to create a "table of contents" at the beginning of the document. These hyperlinks allow you to browse from a point in the document The location is moved to another location. (Go to the top of this article and click on the link to a specific section in the content index. You will be returned here.)

You can also link to a specific section in another document. I mention this first because it will help You understand links within a document.

Links between specific sections in different documents
Suppose you want to create a link from document A (documentA.html) to a specific section in another document (MaineStats.html) link.

Enter HTML encoding to point to a named link:

documentA.html:

In addition to the many state parks, Maine is also home to
Acadia National Park. The string following the pound sign (#) can be seen as a tag in the file MaineStats.html. This tag tells the browser where to start displaying when the link is activated. Above In this example, the first line displayed will be the Acadia National Park heading.

Step 2, create a named anchor chain in MaineStats.html ("ANP" in this example)

Acadia National Park



After these elements are completed, you can let readers directly find the reference information of Acadia in MaineStats.html.

Note: If you want to link To go to a specific location in another document, you need to have write access to that document, or that document already contains a named anchor chain within the document. For example, you can include a link to this guide in the document you are writing. Anchors, because this article already contains named anchors (use View Source in your browser to see the code). But if this document did not have named anchors, you would not be able to make a link to a specific location because you would not be able to edit the NCSA server The original file in .

A link to a specified part of the current document
The syntax is the same as before, except that the file name is omitted.

For example, to link to ANP from MaineStats:

...More information about Acadia National Park
is available elsewhere in this document.

Be sure to include the tag (

< ;A NAME="ANP">Acadia National Park

).

When you think readers may need to print the entire document, or there are many short messages in one file that require online explanation Very useful.

Send Mail to Mailto
Contains the mailto attribute in the hyperlink, which makes it convenient for readers to send emails to a certain person or alias. The format is:

Name< /a>

For example, enter:

NCSA Publications Group

You can create a configured email to BUPT Publications Group mail window. (You should of course use another address!)

The above is the content of HTML Beginner’s Guide (7). For more related content, please pay attention to the PHP Chinese website (www.php.cn)!


Statement of this Website
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

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

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Table Border in HTML Table Border in HTML Sep 04, 2024 pm 04:49 PM

Guide to Table Border in HTML. Here we discuss multiple ways for defining table-border with examples of the Table Border in HTML.

HTML margin-left HTML margin-left Sep 04, 2024 pm 04:48 PM

Guide to HTML margin-left. Here we discuss a brief overview on HTML margin-left and its Examples along with its Code Implementation.

Nested Table in HTML Nested Table in HTML Sep 04, 2024 pm 04:49 PM

This is a guide to Nested Table in HTML. Here we discuss how to create a table within the table along with the respective examples.

HTML Table Layout HTML Table Layout Sep 04, 2024 pm 04:54 PM

Guide to HTML Table Layout. Here we discuss the Values of HTML Table Layout along with the examples and outputs n detail.

HTML Input Placeholder HTML Input Placeholder Sep 04, 2024 pm 04:54 PM

Guide to HTML Input Placeholder. Here we discuss the Examples of HTML Input Placeholder along with the codes and outputs.

HTML Ordered List HTML Ordered List Sep 04, 2024 pm 04:43 PM

Guide to the HTML Ordered List. Here we also discuss introduction of HTML Ordered list and types along with their example respectively

Moving Text in HTML Moving Text in HTML Sep 04, 2024 pm 04:45 PM

Guide to Moving Text in HTML. Here we discuss an introduction, how marquee tag work with syntax and examples to implement.

HTML onclick Button HTML onclick Button Sep 04, 2024 pm 04:49 PM

Guide to HTML onclick Button. Here we discuss their introduction, working, examples and onclick Event in various events respectively.

See all articles