Home Web Front-end H5 Tutorial Structure and semantics of HTML5 (4): Semantic inline elements_html5 tutorial skills

Structure and semantics of HTML5 (4): Semantic inline elements_html5 tutorial skills

May 16, 2016 pm 03:51 PM
element Fraction Can Attributes structure express Semantics this

HTML4 uses 5 different inline elements to represent slightly different computer codes: var, code, kbd, tt, and samp. However, it cannot represent basic values ​​such as time and numbers. HTML5 provides several new inline elements to meet the needs of non-technical writers.
m
The m element indicates that the text is "marked", but does not necessarily need to be emphasized. Think of it like a highlighted section in a book. Google's cached pages are a typical use case. If linking to a cached copy, the search term is flagged. For example, if you search for "Egret", a cached Google page might look like this:
TheGreatEgret(also known as the
AmericanEgret)isalargewhitewadingbirdfoundworldwide.
TheGreatEgretflieswithslowwingbeats.
Casmerodiusalbus. There is currently controversy over the name of this element. It may be changed from m to mark before the specification is released.
time

The time element represents a time value, such as 5:35P.M., EST, April 23, 2007. For example: Iamwritingthisexampleat

5:35P.M.onApril23rd

.
The time element can help browsers and other programs identify the time in HTML pages. It does not require any specific formatting to be applied to the element content. However, each time element should have a datetime attribute containing a time value more suitable for machine recognition, such as:

Iamwritingthisexampleat

5:35P.M.onApril23rd

.
A machine-readable time value may be useful for search engines, calendar programs, etc.

meter

 The meter element represents a numeric value within the specified range. For example, it could be used to represent salaries, the percentage of French voters who voted for LePen, or test scores. Here, I use meter to plot data provided by a Google programmer on Software Development 2007: AnentrylevelprogrammerinSiliconValley
canexpecttostartaround
$90,000

peryear.
The meter element helps browsers and other clients identify quantities in HTML pages. It does not require any specific formatting to be applied to the element content. However, each meter element can have up to 6 attributes, which represent this quantity in a form more suitable for machine recognition: 🎜>These attributes should all contain a decimal number. For example, the score for the final exam can be written as follows:

Yourscorewas

B
.


This means that the student’s score is 88.7 on the hundred point scale. The lowest possible score is 0, but the actual lowest score is 65. The maximum possible score is 100, but the actual maximum score is 96. The user agent can display this information with some kind of numeric control, or it can display additional data in a tooltip, but probably the most common case is to style it like any other inline element.

progress

The progress element represents the status of an ongoing process, like a progress bar in a graphical user interface (GUI) application. For example, you can use it to indicate the percentage of a file that has been downloaded or the current position when playing a movie. The progress control below indicates that the download is 33% complete:
Downloaded:
33%



The value attribute represents the current status of the operation. The max attribute indicates the total amount of operations. This element indicates that the total amount of data to be downloaded is 4,603,807 bytes and 1,534,602 bytes have been downloaded. Ignore the max attribute to display infinite progress.
When the operation is in progress, JavaScript language should be used to dynamically update the progress bar. In a static case, this element has little meaning.
 

 (To be continued)

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

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

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)

Can I delete the downloads folder? Can I delete the downloads folder? Feb 19, 2024 pm 03:38 PM

Can downloads be deleted? In recent years, with the advent of the digital age, more and more digital products and services have appeared in our lives. What follows is that our demand for digital content is increasing day by day. In our daily life and work, we often need to download a variety of files, such as documents, pictures, audios, videos, etc. These downloaded files are usually saved in a folder called "downloads". However, over time we often find that,"

How to calculate the score of the house in Misty Jianghu How to calculate the score of the house in Misty Jianghu Feb 29, 2024 pm 12:43 PM

There is a kind of house gameplay in Yanyu Jianghu. Players are free to build their own houses. After the house is successfully built, they will also get a house score. At the same time, the house score in the game also has its own calculation method. Of course, its calculation method is also It will be calculated using the given calculation method, and players can take a look. Calculation method of house score in Yanyujianghu 1. House score: appearance score, placement score, scale score, and research are divided into four parts. 2. Appearance score: mainly building skin bonus points and moving bonus points (200 points). There are two building skins. There are two types, one is the hand patch exchanged in the home shop above, and the other is the skin patch on the turntable. 3. Placement points: the points obtained by the crafted furniture, the green upper limit is 10 points, the blue upper limit is 15 points, and the purple upper limit is 10 points.

Which games are suitable for playing with i34150 and 1G independent graphics (which games is suitable for i34150) Which games are suitable for playing with i34150 and 1G independent graphics (which games is suitable for i34150) Jan 05, 2024 pm 08:24 PM

What games can be played with i34150 with 1G independent graphics? Can it play small games such as LoL? GTX750 and GTX750TI are very suitable graphics card choices. If you just play some small games or not play games, it is recommended to use the i34150 integrated graphics card. Generally speaking, the price difference between graphics cards and processors is not very big, so it is important to choose a reasonable combination. If you need 2G of video memory, it is recommended to choose GTX750TI; if you only need 1G of video memory, just choose GTX750. GTX750TI can be seen as an enhanced version of GTX750, with overclocking capabilities. Which graphics card can be paired with i34150 depends on your needs. If you plan to play stand-alone games, it is recommended that you consider changing the graphics card. you can choose

How to insert fractions in word How to insert fractions in word Mar 19, 2024 pm 08:31 PM

There may be many people who don't know how to insert fractions into Word. After all, we don't often encounter the situation of entering fractions. But it will be more troublesome if you encounter it, so we should understand how to enter Word scores. Entering fractions in Word is actually very simple. Next, I will share how to enter fractions in Word. There are many ways to enter fractions in Word, one of which is to use the insert formula function. The steps are as follows: After opening the Word document, click the [Insert] option in the menu bar, and then select [Formula] in the pop-up menu. This will open a formula editor where you can enter the desired fraction. In the editor, you can use the fraction format buttons to create fractions, or manually enter "\frac{numerator}{

bottom attribute syntax in CSS bottom attribute syntax in CSS Feb 21, 2024 pm 03:30 PM

Bottom attribute syntax and code examples in CSS In CSS, the bottom attribute is used to specify the distance between an element and the bottom of the container. It controls the position of an element relative to the bottom of its parent element. The syntax of the bottom attribute is as follows: element{bottom:value;} where element represents the element to which the style is to be applied, and value represents the bottom value to be set. value can be a specific length value, such as pixels

What are the syntax and structure characteristics of lambda expressions? What are the syntax and structure characteristics of lambda expressions? Apr 25, 2024 pm 01:12 PM

Lambda expression is an anonymous function without a name, and its syntax is: (parameter_list)->expression. They feature anonymity, diversity, currying, and closure. In practical applications, Lambda expressions can be used to define functions concisely, such as the summation function sum_lambda=lambdax,y:x+y, and apply the map() function to the list to perform the summation operation.

Introduction to the attributes of Hearthstone's Despair Thread Introduction to the attributes of Hearthstone's Despair Thread Mar 20, 2024 pm 10:36 PM

Thread of Despair is a rare card in Blizzard Entertainment's masterpiece "Hearthstone" and has a chance to be obtained in the "Wizbane's Workshop" card pack. Can consume 100/400 arcane dust points to synthesize the normal/gold version. Introduction to the attributes of Hearthstone's Thread of Despair: It can be obtained in Wizbane's workshop card pack with a chance, or it can also be synthesized through arcane dust. Rarity: Rare Type: Spell Class: Death Knight Mana: 1 Effect: Gives all minions a Deathrattle: Deals 1 damage to all minions

How to tell if a jQuery element has a specific attribute? How to tell if a jQuery element has a specific attribute? Feb 29, 2024 am 09:03 AM

How to tell if a jQuery element has a specific attribute? When using jQuery to operate DOM elements, you often encounter situations where you need to determine whether an element has a specific attribute. In this case, we can easily implement this function with the help of the methods provided by jQuery. The following will introduce two commonly used methods to determine whether a jQuery element has specific attributes, and attach specific code examples. Method 1: Use the attr() method and typeof operator // to determine whether the element has a specific attribute

See all articles