The a target HTML Attribute Explained - freeCodeCamp

文章推薦指數: 80 %
投票人數:10人

A target attribute with the value of “_blank” opens the linked document in a new window or tab. attributespecifieswheretoopenthelinkeddocumentinana(anchor)tag.ExamplesofAtargetattributewiththevalueof“_blank”opensthelinkeddocumentinanewwindowortab. freeCodeCampAtargetattributewiththevalueof“_self”opensthelinkeddocumentinthesameframeasitwasclicked(thisisthedefaultandusuallydoesnotneedtobespecified). freeCodeCamp freeCodeCampAtargetattributewiththevalueof“_parent”opensthelinkeddocumentintheparentframe. freeCodeCampAtargetattributewiththevalueof“_top”opensthelinkeddocumentinthefullbodyofthewindow. freeCodeCampAtargetattributewiththevalueof“framename”opensthelinkeddocumentinaspecifiednamedframe. freeCodeCampRelatedlinks:TheattributeGeneralinfoonHTMLattributes Ifthisarticlewashelpful,tweetit. Learntocodeforfree.freeCodeCamp'sopensourcecurriculumhashelpedmorethan40,000peoplegetjobsasdevelopers.Getstarted



請為這篇文章評分?