代码` <link rel=“stylesheet“ href=“{% static ‘other/css/bootstrap.min.css‘ %}“> `中的参数rel是什么英文的缩写?

博客主要介绍了HTML中rel参数的含义,它是“Relationship”的缩写,用于定义链接元素与所链接资源之间的关系类型。以加载样式表的链接元素为例,rel为“stylesheet”时,表明链接指向外部样式表文件,浏览器会加载并应用该样式表。

代码 中的参数rel是什么英文的缩写?代表什么意思?

在 HTML 中,rel 是 “Relationship” 的缩写,代表着链接(link)元素与当前文档之间的关系。rel 属性用于定义链接元素(如 <link><a> 等)与所链接资源之间的关系类型。

在你提到的代码中,<link rel="stylesheet" href="{% static 'other/css/bootstrap.min.css' %}"> 的意思是:这是一个用于加载样式表的链接元素,它与当前文档具有“stylesheet”(样式表)的关系。

通过 rel="stylesheet",浏览器会知道这个链接元素指向的资源是一个外部的样式表文件,浏览器将会加载这个样式表并应用于当前文档,从而影响文档的外观和布局。

总之,rel 属性指定了链接元素与所链接资源之间的关系,而在这个例子中,关系类型是 “stylesheet”,表示链接元素指向一个样式表文件。

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/css/bootstrap.min.css"> <script src="https://cdn.staticfile.org/jquery/3.2.1/jquery.min.js"></script> <script src="https://cdn.staticfile.org/popper.js/1.15.0/umd/popper.min.js"></script> <link rel="stylesheet" type="text/css" media="screen and (max-device-width: 600px)" href="style/css/css600.css" /> <link rel="stylesheet" href="/CSS/common.css"> <link rel="stylesheet" href="/CSS/login.css"> <script src="/JS/login.js"></script> <title>登录</title> </head> <body> <nav class="navbar navbar-expand-lg navbar-light bg-light"> <div class="container-fluid"> <a class="navbar-brand" href="index.html">主页</a> <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="true" aria-label="Toggle navigation"data-toggle="dropdown" > <span class="navbar-toggler-icon" data-toggle="dropdown"></span> </button> <div class="collapse navbar-collapse" id="navbarSupportedContent"> <ul class="navbar-nav me-auto mb-2 mb-lg-0"> <li class="nav-item"> <a class="nav-link active" aria-current="page" href="ranking.html">排行</a> </li> <li class="nav-item"> <a class="nav-link" href="login.html">我的</a> </li> <li class="nav-item"> <a class="nav-link" href="new.html">最新</a> </li> <li class="nav-item"> <a class="nav-link" href="contact.html">联系我们</a> </li> <li class="nav-item dropdown"> <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-expanded="true"> 全部 </a> <ul class="dropdown-menu" aria-labelledby="navbarDropdown"> <li><a class="dropdown-item" href="#">电视</a></li> <li><a class="dropdown-item" href="#">动漫</a></li> <li><hr class="dropdown-divider"></li> <li><a class="dropdown-item" href="#">Something else here</a></li> </ul> </li> </ul> <form class="d-flex"> <input class="form-control me-2" type="search" placeholder="Search" aria-label="Search"> <button class="btn btn-outline-success" type="submit">Search</button> </form> </div> </div> </nav> <div class="con"> <div class="login"> <div class="login_logo sign-in-container"> <form action="" method="post" name="login"> <h1>登录</h1> <span>或使用您的账号</span> <input type="text" placeholder="name" name="name" id="name"> <input type="password" placeholder="password" name="password" id="password"> <input type="submit"value="登录" class="login_btn" onClick="return getStorage()"> <p><a href="#">忘记密码</a></p> </form> </div> <div class="other_box"> <div class="other"> <div class="overlay-panel overlay-right"> <h1>没有账号?</h1> <p>立即注册加入我们吧</p> <a href="/HTML/register.html"> <button class="click" id="signUp" >注册</button> </a> </div> </div> </div> </div> </div> </body> </html> 我需要注册界面的表单验证
最新发布
06-09
使用scrapy对https://quotes.toscrape.com/中的名人名言的内容,作者、标签信息进行爬取,并将爬取的内容信息保存到本地,要求1.爬取的网站内容全面,2.自动化爬取翻页内容。网站第一页源码如下:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Quotes to Scrape</title> <link rel="stylesheet" href="/static/bootstrap.min.css"> <link rel="stylesheet" href="/static/main.css"> </head> <body> <div class="container"> <div class="row header-box"> <div class="col-md-8"> <h1> <a href="/" style="text-decoration: none">Quotes to Scrape</a> </h1> </div> <div class="col-md-4"> <p> <a href="/login">Login</a> </p> </div> </div> <div class="row"> <div class="col-md-8"> <div class="quote" itemscope itemtype="http://schema.org/CreativeWork"> <span class="text" itemprop="text">“The world as we have created it is a process of our thinking. It cannot be changed without changing our thinking.”</span> <span>by <small class="author" itemprop="author">Albert Einstein</small> <a href="/author/Albert-Einstein">(about)</a> </span> <div class="tags"> Tags: <meta class="keywords" itemprop="keywords" content="change,deep-thoughts,thinking,world" / > <a class="tag" href="/tag/change/page/1/">change</a> <a class="tag" href="/tag/deep-thoughts/page/1/">deep-thoughts</a> <a class="tag" href="/tag/thinking/page/1/">thinking</a> <a class="tag" href="/tag/world/page/1/">world</a> </div> </div> <div class="quote" itemscope itemtype="http://schema.org/CreativeWork"> <span class="text" itemprop="text">“It is our choices, Harry, that show what we truly are, far more than our abilities.”</span> <span>by <small class="author" itemprop="author">J.K. Rowling</small> <a href="/author/J-K-Rowling">(about)</a> </span> <div class="tags"> Tags: <meta class="keywords" itemprop="keywords" content="abilities,choices" / > <a class="tag" href="/tag/abilities/page/1/">abilities</a> <a class="tag" href="/tag/choices/page/1/">choices</a> </div> </div> <div class="quote" itemscope itemtype="http://schema.org/CreativeWork"> <span class="text" itemprop="text">“There are only two ways to live your life. One is as though nothing is a miracle. The other is as though everything is a miracle.”</span> <span>by <small class="author" itemprop="author">Albert Einstein</small> <a href="/author/Albert-Einstein">(about)</a> </span> <div class="tags"> Tags: <meta class="keywords" itemprop="keywords" content="inspirational,life,live,miracle,miracles" / > <a class="tag" href="/tag/inspirational/page/1/">inspirational</a> <a class="tag" href="/tag/life/page/1/">life</a> <a class="tag" href="/tag/live/page/1/">live</a> <a class="tag" href="/tag/miracle/page/1/">miracle</a> <a class="tag" href="/tag/miracles/page/1/">miracles</a> </div> </div> <div class="quote" itemscope itemtype="http://schema.org/CreativeWork"> <span class="text" itemprop="text">“The person, be it gentleman or lady, who has not pleasure in a good novel, must be intolerably stupid.”</span> <span>by <small class="author" itemprop="author">Jane Austen</small> <a href="/author/Jane-Austen">(about)</a> </span> <div class="tags"> Tags: <meta class="keywords" itemprop="keywords" content="aliteracy,books,classic,humor" / > <a class="tag" href="/tag/aliteracy/page/1/">aliteracy</a> <a class="tag" href="/tag/books/page/1/">books</a> <a class="tag" href="/tag/classic/page/1/">classic</a> <a class="tag" href="/tag/humor/page/1/">humor</a> </div> </div> <div class="quote" itemscope itemtype="http://schema.org/CreativeWork"> <span class="text" itemprop="text">“Imperfection is beauty, madness is genius and it's better to be absolutely ridiculous than absolutely boring.”</span> <span>by <small class="author" itemprop="author">Marilyn Monroe</small> <a href="/author/Marilyn-Monroe">(about)</a> </span> <div class="tags"> Tags: <meta class="keywords" itemprop="keywords" content="be-yourself,inspirational" / > <a class="tag" href="/tag/be-yourself/page/1/">be-yourself</a> <a class="tag" href="/tag/inspirational/page/1/">inspirational</a> </div> </div> <div class="quote" itemscope itemtype="http://schema.org/CreativeWork"> <span class="text" itemprop="text">“Try not to become a man of success. Rather become a man of value.”</span> <span>by <small class="author" itemprop="author">Albert Einstein</small> <a href="/author/Albert-Einstein">(about)</a> </span> <div class="tags"> Tags: <meta class="keywords" itemprop="keywords" content="adulthood,success,value" / > <a class="tag" href="/tag/adulthood/page/1/">adulthood</a> <a class="tag" href="/tag/success/page/1/">success</a> <a class="tag" href="/tag/value/page/1/">value</a> </div> </div> <div class="quote" itemscope itemtype="http://schema.org/CreativeWork"> <span class="text" itemprop="text">“It is better to be hated for what you are than to be loved for what you are not.”</span> <span>by <small class="author" itemprop="author">André Gide</small> <a href="/author/Andre-Gide">(about)</a> </span> <div class="tags"> Tags: <meta class="keywords" itemprop="keywords" content="life,love" / > <a class="tag" href="/tag/life/page/1/">life</a> <a class="tag" href="/tag/love/page/1/">love</a> </div> </div> <div class="quote" itemscope itemtype="http://schema.org/CreativeWork"> <span class="text" itemprop="text">“I have not failed. I've just found 10,000 ways that won't work.”</span> <span>by <small class="author" itemprop="author">Thomas A. Edison</small> <a href="/author/Thomas-A-Edison">(about)</a> </span> <div class="tags"> Tags: <meta class="keywords" itemprop="keywords" content="edison,failure,inspirational,paraphrased" / > <a class="tag" href="/tag/edison/page/1/">edison</a> <a class="tag" href="/tag/failure/page/1/">failure</a> <a class="tag" href="/tag/inspirational/page/1/">inspirational</a> <a class="tag" href="/tag/paraphrased/page/1/">paraphrased</a> </div> </div> <div class="quote" itemscope itemtype="http://schema.org/CreativeWork"> <span class="text" itemprop="text">“A woman is like a tea bag; you never know how strong it is until it's in hot water.”</span> <span>by <small class="author" itemprop="author">Eleanor Roosevelt</small> <a href="/author/Eleanor-Roosevelt">(about)</a> </span> <div class="tags"> Tags: <meta class="keywords" itemprop="keywords" content="misattributed-eleanor-roosevelt" / > <a class="tag" href="/tag/misattributed-eleanor-roosevelt/page/1/">misattributed-eleanor-roosevelt</a> </div> </div> <div class="quote" itemscope itemtype="http://schema.org/CreativeWork"> <span class="text" itemprop="text">“A day without sunshine is like, you know, night.”</span> <span>by <small class="author" itemprop="author">Steve Martin</small> <a href="/author/Steve-Martin">(about)</a> </span> <div class="tags"> Tags: <meta class="keywords" itemprop="keywords" content="humor,obvious,simile" / > <a class="tag" href="/tag/humor/page/1/">humor</a> <a class="tag" href="/tag/obvious/page/1/">obvious</a> <a class="tag" href="/tag/simile/page/1/">simile</a> </div> </div> <nav> <ul class="pager"> <li class="next"> <a href="/page/2/">Next <span aria-hidden="true">→</span></a> </li> </ul> </nav> </div> <div class="col-md-4 tags-box"> <h2>Top Ten tags</h2> <span class="tag-item"> <a class="tag" style="font-size: 28px" href="/tag/love/">love</a> </span> <span class="tag-item"> <a class="tag" style="font-size: 26px" href="/tag/inspirational/">inspirational</a> </span> <span class="tag-item"> <a class="tag" style="font-size: 26px" href="/tag/life/">life</a> </span> <span class="tag-item"> <a class="tag" style="font-size: 24px" href="/tag/humor/">humor</a> </span> <span class="tag-item"> <a class="tag" style="font-size: 22px" href="/tag/books/">books</a> </span> <span class="tag-item"> <a class="tag" style="font-size: 14px" href="/tag/reading/">reading</a> </span> <span class="tag-item"> <a class="tag" style="font-size: 10px" href="/tag/friendship/">friendship</a> </span> <span class="tag-item"> <a class="tag" style="font-size: 8px" href="/tag/friends/">friends</a> </span> <span class="tag-item"> <a class="tag" style="font-size: 8px" href="/tag/truth/">truth</a> </span> <span class="tag-item"> <a class="tag" style="font-size: 6px" href="/tag/simile/">simile</a> </span> </div> </div> </div> <footer class="footer"> <div class="container"> <p class="text-muted"> Quotes by: <a href="https://www.goodreads.com/quotes">GoodReads.com</a> </p> <p class="copyright"> Made with <span class='zyte'>❤</span> by <a class='zyte' href="https://www.zyte.com">Zyte</a> </p> </div> </footer> </body> </html>
05-22
本关任务:使用Django的模型完成用户信息的数据展示功能。from django.db import models # Create your models here. class UserInfo(models.Model): # ********** Begin ********** # # ********** End ********** 第二部分#from django.shortcuts import render from app import models # Create your views here. def index(request): # ********** Begin ********** # # ********** End ********** #"""step1 URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based views 1. Add an import: from other_app.views import Home 2. Add a URL to urlpatterns: path('', Home.as_view(), name='home') Including another URLconf 1. Import the include() function: from django.urls import include, path 2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) """ from django.contrib import admin from django.urls import path from app import views urlpatterns = [ path('admin/', admin.site.urls), # ********** Begin ********** # # ********** End ********** # ] <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Django 模型</title> <link rel="stylesheet" href="/static/layui/css/layui.css"> <script src="/static/layui/layui.all.js"></script> <script src="/static/layui/jquery-3.1.1.min.js"></script> </head> <body> <div class="layui-container"> <div class="layui-row"> <div class="layui-col-md12"> <blockquote class="layui-elem-quote layui-quote-nm">用户信息</blockquote> </div> <div class="layui-col-md12"> <table class="layui-table"> <colgroup> <col width="100"> <col width="100"> <col width="100"> <col> </colgroup> <thead> <tr> <th>编号</th> <th>用户名</th> <th>性别</th> <th>签名</th> </tr> </thead> <tbody> <!---------- Begin ----------> <tr> <td>id</td> <td>用户名</td> <td>性别</td> <td>签名</td> </tr> <!---------- End ----------> </tbody> </table> </div> </div> </div> </body> </html>补充代码
05-31
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

昊虹AI笔记

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值