Home > Web Front-end > HTML Tutorial > HTML Basics: Learn to master HTML standard attributes

HTML Basics: Learn to master HTML standard attributes

黄舟
Release: 2016-12-26 15:17:21
Original
1601 people have browsed it

HTML tags have attributes. The special properties of each tag are listed under each tag description. The attributes listed here are the core attributes and language attributes common to every tag (with some exceptions):

Core Attributes

The following tags do not provide the following attributes: base , head, html, meta, param, script, style and title elements.

Attributes

Value

Description

class class_rule or style_rule Class of element (class)

id id_name A specific id of the element.

style Style definition Inline style definition.

title Prompt text The text displayed in the prompt tool.

Language Attributes

The following tags do not provide the following attributes: base, br, frame, frameset, hr, iframe, param and script elements.

Attributes

Value

Description

dir ltr | rtl Set the direction of the text.

lang Language code Set the language code.

Keyboard Attributes

Attributes

Value

Description

accesskey character Sets the keyboard shortcut for accessing an element.

tabindex Number Set the tab order of an element.

The above is the basic knowledge of HTML: learn to master the content of HTML standard attributes. For more related content, please pay attention to the PHP Chinese website (www.php.cn)!


Related labels:
source: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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template