The s tag in HTML
- 24-07-2022
- Trung Minh
- 0 Comments
The s tag defines text that is no longer accurate or relevant.
Text inside the s tag will display as crossed out text just like the del tag.
The s tag should not be used for replaced or deleted text content, then the del tag should be used.
So when to use the s tag instead of the del tag with the same display style?
When you make a list of items that you want to buy in turn, for example, the ones that you have purchased should be placed in the s card instead of the del card because you will want to keep them to check back later. term.
Using
For example : make a list of the parts you will have to buy to build a computer case, the purchased parts will be marked.
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> </head> <body> <h1>Học html miễn phí tại web888.vn</h1> <ul> <h3>Danh sách các bộ phận cần mua:</h3> <li><s>Main: Gigabyte B150 G1 Sniper B7 - LGA 1151 Skylake</s></li> <li><s>CPU: Intel Core i5-6600 3.3GHz (3.9GHz Turbo Boost ) Skylake LGA 1151</s></li> <li>VGA: Gigabyte GTX 1050 TI GAMING X ( 128 bit ) DDR5</li> <li>SSD: SSD Samsung 850 EVO 120GB - True Speed Sata</li> <li>HDD: Western Digital Caviar Blue 1TB - 64MB cache - 7200 vòng - Sata 3</li> <li><s>Vỏ Case: HiGamer Dragon - Windowed Mid-Tower Gaming Case</s></li> <li><s>PSU: Seasonic S12II 520 - 80 Plus Bronze PSU</s></li> <li>COOL: ID Cooling SE-903 - Cpu Cooler</li> </ul> </body> </html>
It's hard to buy wrong, or missing, isn't it 🙂