




免费预览已结束,剩余17页可下载查看
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
HTTP HyperTextTransferProtocol HTMLforms htmlformsareusefullforgettingdifferentkindsofuserinputandsendingthisinputtothewebserverhtmlformsareintroducedbythetagsyntaxof textcontent inputelements inputelementsaredescribedusingthetag attributes action URL specifieswheretheform datawillbesentwhentheformissubmittedaccept MIMEtype specifiesthetypesoffilesthatcanbesubmittedthroughafileuploadaccept charset charset specifiesthecharacter settheserercanhandleforform dataenctype application x www form urlencoded multipart form data text plain specifieshowformdatashouldbeencodedbeforesendingittothewebservermethod get form dataissenttothewebserverintheheaderoftheHTTPrequest post form dataissenttothewebserverinthebodyoftheHTTPrequest specifieshowtosendform dataname string thenameoftheform Typesofuserinput Thetag isusefulforselectinguserinformationreceivesinputinvarioustypeshasnoendtaginHtmlattributes accept MIME type fortype file onlyspecifiestypesoffilesthatcanbesubmittedthroughafileuploadalt text fortype image onlyspecifiesanalternatetextforanimageinputchecked checked fortype checkbox radio specifiesiftheinputshouldbepreselectedwhenthepageloadsdisabled disabled specifiestheinputshouldbedisabledwhenthepageloadsmaxlength number fortype text password specifiesthemaximumlengthincharactersoftheinputfieldname text specifiesthenameofinputelementreadonly readonly fortype text password specifiestheinputfieldshouldberead onlysize number thewidthoftheinputfieldsrc URL theURLofanimagetodisplayasasubmitbuttontype button checkbox file hidden image password radio reset submit textvalue text valueoftheinputelement Othertagsusefulins definesamulti linetextinputcontrolcanholdanunlimitedno ofcharacterstextisrenderedinfixed widthfont usuallycourier attributes cols number visiblenumberofcolumnsinatextarea requiredattribute rows number visiblenumbersofrowsinatextarea requiredattribute disabled disabled textareaisdisabledreadonly readonly textareaisreadonlyname text nameofthetextareaelementEx Thisisatextarea and doesnotrenderanything definesalabelforaninputelement ittogglesthecontroliftheuserclicksthetextwithinthelabeldefinesapushbutton itcancontaininsidetextorimages differencefrom attributesfor disabled disabled buttonisdisabledname text nameofthebuttontype button reset submit typeofthebuttonvalue text valueofthebuttonEx Clickme and definesacaptionforaelementgroupstogetherformelements itdrawsaboxaroundthemEx SomecaptiongroupstogetherrelatedoptionsinaselectlistEx AppleGrapesFootballBasketball and andareusefulforcreatingadrop downlistEx FordFerrariBMWattributesofselect disabled disabled listisdisabledmultiple multiple multipleselectionsarepossiblename text nameoftheelementsize number no ofvisibleoptionsinthelistattributesofoption disabled disabled thisoptionisdisabledselected selected thisoptionisselectedbydefaultvalue text valuethatwillbesenttotheserverwhentheformissubmitted SetsofcharactersinHTML Mostbrowserssupport ASCIIcharacterset see see URL UniformResourceLocator anURLidentifiesaresourceintheWWWURLsareasubsetofURIs UniformResourceIdentifiers URL URIthatprovidesthelocationforaresourcegeneralformofaURL resource type domain port filepathname querystring anchorresource type theschemename protocol whichdefinesthenamespace syntaxandremainingpartofURLdomain registereddomainnameorIPaddressoflocation case insensitive port portnumber optional defaultforschemeisused filepathname pathtotheresource fileontheserver usuallycase sensitive querystring datasubmittedtotheserverthroughformsanchor aspecificlocationinsidethatdocument URLexamples ftp URI UniformResourceIdentifier Webcommunication Internet Get HTTPReply Client browser Firefox onlocalcomputer Webserver HTTP HyperTextTransferProtocol togetherwithHTMLformsthebaseofWWWisstandardizedbyIETF rfc2616 isarequest responseprotocolitisstateless doesnotmaintainastateofasession andasynchronous anhtmldocumentisloadedasynchronousbythebrowser assoonaspartsofitareavailable latestversionisHTTP 1 1runsontopofTCPonthestandardizedport80 HTTPRequest hastheform Request MethodSPRequest URLSPHTTP Version generic header request header entity header messagebody Request Methodis GET requestwhateverinformationisidentifiedbytheRequest URLPOST requestthatserveracceptstheentityenclosedintherequestOPTIONS requestforinformationaboutcommunicationoptionsPUT requestthattheenclosedentitybestoredundertheRequest URLDELETE requestthattheserverdeletetheresourceidentifiedbyRequest URLTRACE invokearemote application layerloopbackoftherequestmessageCONNECT usedbyproxiesinSSLconnectionsHEAD identicaltoGET butservermustnotreturnamessagebodyinresponse HTTPRequest 2 Request headercanhavethefollowingfields selection Accept MIMEtypesofresourcesacceptedbybrowserAccept Charset charsetacceptedbybrowserAccept Encoding encodingacceptedbybrowserAccept Language languageacceptedbybrowserAuthorization user agentwishestoauthenticateitselfwithaserverHost thehostRequest URLpointstoReferer theURLofdocumentreferingthisURLUser Agent Firefox Safari IE HTTPResponse hastheform Http VersionSPStatus CodeSPReason Phrase generic header response header entity header messagebody Response headerhasthefollowingfields selection Accept Ranges serverindicatesitsacceptanceofrangerequestsforresourceAge sender sestimateoftheamountoftimesincetheresponsewasgeneratedbyserverLocation redirecttheclienttoalocationotherthanRequest URLforcompletionoftherequestRetry After indicatetoclienthowlongtheserviceisexpectedtobeunavailableServer informationaboutsoftwareusedbytheservertohandletherequest HTTPRequestexample GetHTTP 1 1Host User Agent Mozilla 5 0 Windows U WindowsNT5 1 en US rv 1 9 1 3 Gecko 20090824Firefox 3 5 3 NETCLR3 5 30729 Accept text html application xhtml xml application xml q 0 9 q 0 8Accept Langu
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 第1节 创建表格与数值计算说课稿初中信息技术人教蒙教版2021七年级上册-人教蒙教版2021
- 2025年中国甘蔗基PET瓶行业市场分析及投资价值评估前景预测报告
- 4.1 家的意味(教学设计)七年级道德与法治上册教学设计+教学设计+作业(统编版2024)
- 1.1.1优越的地理位置 海陆兼备的大国说课稿 -人教版地理八年级上册
- 口腔医保知识培训内容课件
- 2025年中国氟化镧(LaF3)行业市场分析及投资价值评估前景预测报告
- 2024年四年级英语下册 Unit 7 What's the matter第2课时说课稿 译林牛津版
- 6.3碳达峰与碳中和教学设计-九年级化学鲁教版(2024)上册
- 保卫知识培训资料课件
- 人教版道德与法治八年级上册第五课做守法公民5.1法不可违 教学设计
- 面向未来的《义务教育语文课程标准(2025年版)》解读
- 2025-2030中国口腔医疗行业发展分析及投资前景与战略规划研究报告
- 《流量计培训》课件
- 酒店残疾人服务工作流程
- 中华民族共同体概论讲稿专家版《中华民族共同体概论》大讲堂之第三讲 文明初现与中华民族起源(史前时期)
- 公路工程技术创新管理制度
- 河北省承德市隆化县第二中学2023-2024学年九年级上学期期中考试物理试题(无答案)
- 蜗牛与黄鹂鸟(课件)人音版音乐二年级上册
- 3.1水循环课件高一地理人教版(2019)必修一+
- DB11∕1450-2017 管道燃气用户安全巡检技术规程
- JTG G10-2016 公路工程施工监理规范
评论
0/150
提交评论