HTML中的Aside标签主要用于显示网页的重要内容。它用作荧光笔,重点关注网页中的主要内容。 HTML中的这个标签也用于对网页进行划分或分区,但这仅用于关注网页的主要内容。它用于使网页的设计更加容易,这将使包含的 HTML 文档更加清晰。网页上旁白标签的主要放置区域位于侧边栏或标注框中。
语法:
<aside> <p>some text</p> </aside>
- 它应该在文章元素内或在该文章元素之外使用。当将此标签与文章元素一起使用时,它必须包含文章的内容。当它要在article元素之外使用时,它必须包含与整个网页相关的数据。
- 这被视为 HTML 中的块级元素。人们可以在
- 但是像其他标签一样,
HTML 中 Aside 标签的属性
以下是 HTML 中 Aside Tag 的属性:
全局属性
- accesskey:用作突出显示特定属性的快捷键。
- class:用于为包含的元素定义一个或多个类名。
- contenteditable:此属性用于提供元素的详细信息,无论其是否可编辑。
- 数据:此属性有助于将自定义数据私下收集到所需的页面或应用程序。
- 可拖动:定义元素是否可拖动。
事件属性
- onafterprint:此属性用于在打印文档时运行脚本。
- onerror: 每当发生任何错误时,都会执行此属性。
- onmessage:触发消息时会发生此脚本。
- onpageshow:每当用户从一个页面导航到另一个页面时,此事件属性都会起作用。
- onstorage:每当网络存储区域更新时,此属性都会运行脚本。
HTML 中 Aside 标签的示例
让我们讨论一些定义
示例 #1 – 在
内添加标签代码:
<h1 id="A-P-J-Abdul-Kalam">A. P. J. Abdul Kalam</h1> <article> <aside style="float:right;width:20%; background-color:deepskyblue;padding:20 20px;"> <img src="/static/imghwm/default1.png" data-src="APJ.jpg" class="lazy" style="max-width:90%" alt="HTML 中的 Aside 标签" > </aside> <p style="width:80%;padding:20px;"> Dr.A.P.J Abdul Kalam was known as one the most famous personality in the India. His full name was Avul Pakir Jainulabdeen Abdul Kalam. His whole life journey comes in between 15 october 1931 – 27 july 2015 . .In this time he was worked as aerospace scientist . Rameswaram ,Tamil Nadu was his birthplace. As well as he was completed his education in physics and aerospace engineering from Tamilnadu state itself. He was provide service to the nation as being 11<sup>th</sup> president of India from 2002 to 2007. He almost spend 4 decades of service as being scientist and science administrator , majorly he was active participants at the Defence Research and Development Organisation (DRDO) and in most famous organization of India i.e and Indian Space Research Organization (ISRO). Due to his active participation in those organization and had part of India’s military missile development he was known as Missile Man of India. He played very important role in nuclear test which is taken by India for Pokharan -2 nuclear test in the year 1998.<br> He was well known personality in all reputed fields like education, aerospace, military, public service and into the writing. He died on 27 July 2015, aged 83</p> </article>
输出:
示例 #2 – 外部标记
代码:
<title>Aside tag</title> <style> .demo { font-size:30px; font-weight:bold; } h1 { font-size:30px; color:purple; font-weight:bold; } p { font-size:20px; margin:20px 0; } </style> <div class="demo"><u>Delhi factory tragedy</u></div> <aside> <h1 id="Delhi-fire-tragedy-Meet-fireman-Sunil-Kumar-who-saved-more-than-dozen-lives">Delhi fire tragedy: Meet fireman Sunil Kumar who saved more than dozen lives</h1> <p> Meet fireman Sunil Kumar, who along with his team, saved the lives of more than a dozen of people from the bag manufacturing factory fire in Delhi's Anaj Mandi area this morning. The early morning fire had left over 40 dead and many injured.<br>As soon as Sunil Kumar, who is also a President award winner, arrived at the spot with his team from Prasad Nagar, it was very difficult for the fire tender to reach the site from the main road, but somehow one fire tender entered while other fire tenders were waiting on the road .</p> </aside>
输出:
示例 #3 – 样式标签
代码:
<article> <h1 id="Miss-South-Africa-crowned-Miss-Universe">Miss South Africa crowned 2019 Miss Universe</h1> <p>Miss Universe 2018 Catriona Gray of the Philippines crowns the new Miss Universe 2019, South Africa's Zozibini Tunzi, during the pageant at Tyler Perry Studios in Atlanta, Georgia, on December 8, 2019. </p> <img src="/static/imghwm/default1.png" data-src="Miss.jpg" class="lazy" style="max-width:90%" alt="HTML 中的 Aside 标签" > </article> <p>The two runners-up for the crown were Miss Mexico and Miss Puerto Rico.</p>
输出:
结论
HTML中的以上是HTML 中的 Aside 标签的详细内容。更多信息请关注PHP中文网其他相关文章!

WebDevelovermentReliesonHtml,CSS和JavaScript:1)HTMLStructuresContent,2)CSSStyleSIT和3)JavaScriptAddSstractivity,形成thebasisofmodernWebemodernWebExexperiences。

HTML的作用是通过标签和属性定义网页的结构和内容。1.HTML通过到、等标签组织内容,使其易于阅读和理解。2.使用语义化标签如、等增强可访问性和SEO。3.优化HTML代码可以提高网页加载速度和用户体验。

htmlisaspecifictypefodyfocusedonstructuringwebcontent,而“代码” badlyLyCludEslanguagesLikeLikejavascriptandPytyPythonForFunctionality.1)htmldefineswebpagertuctureduseTags.2)“代码”代码“ code” code code code codeSpassSesseseseseseseseAwiderRangeLangeLangeforLageforLogageforLogicIctInterract

HTML、CSS和JavaScript是Web开发的三大支柱。1.HTML定义网页结构,使用标签如、等。2.CSS控制网页样式,使用选择器和属性如color、font-size等。3.JavaScript实现动态效果和交互,通过事件监听和DOM操作。

HTML定义网页结构,CSS负责样式和布局,JavaScript赋予动态交互。三者在网页开发中各司其职,共同构建丰富多彩的网站。

HTML适合初学者学习,因为它简单易学且能快速看到成果。1)HTML的学习曲线平缓,易于上手。2)只需掌握基本标签即可开始创建网页。3)灵活性高,可与CSS和JavaScript结合使用。4)丰富的学习资源和现代工具支持学习过程。

AnexampleOfAstartingTaginHtmlis,beginSaparagraph.startingTagSareEssentialInhtmlastheyInitiateEllements,defiteTheeTheErtypes,andarecrucialforsstructuringwebpages wepages webpages andConstructingthedom。

如何设计菜单中的虚线分割效果?在设计菜单时,菜名和价格的左右对齐通常不难实现,但中间的虚线或点如何...


热AI工具

Undresser.AI Undress
人工智能驱动的应用程序,用于创建逼真的裸体照片

AI Clothes Remover
用于从照片中去除衣服的在线人工智能工具。

Undress AI Tool
免费脱衣服图片

Clothoff.io
AI脱衣机

AI Hentai Generator
免费生成ai无尽的。

热门文章

热工具

EditPlus 中文破解版
体积小,语法高亮,不支持代码提示功能

记事本++7.3.1
好用且免费的代码编辑器

SecLists
SecLists是最终安全测试人员的伙伴。它是一个包含各种类型列表的集合,这些列表在安全评估过程中经常使用,都在一个地方。SecLists通过方便地提供安全测试人员可能需要的所有列表,帮助提高安全测试的效率和生产力。列表类型包括用户名、密码、URL、模糊测试有效载荷、敏感数据模式、Web shell等等。测试人员只需将此存储库拉到新的测试机上,他就可以访问到所需的每种类型的列表。

MinGW - 适用于 Windows 的极简 GNU
这个项目正在迁移到osdn.net/projects/mingw的过程中,你可以继续在那里关注我们。MinGW:GNU编译器集合(GCC)的本地Windows移植版本,可自由分发的导入库和用于构建本地Windows应用程序的头文件;包括对MSVC运行时的扩展,以支持C99功能。MinGW的所有软件都可以在64位Windows平台上运行。

ZendStudio 13.5.1 Mac
功能强大的PHP集成开发环境