CodeNotes

Hello my web developers, today I'm going to share about the tags we use in HTML5. I'll start with semantic elements.

So what comes to our mind when we think of the word Semantic? Let's say it is a study of the meaning of words and phrases in any language, which can be applied to entire text or to the single word. for eg, When it comes to our web page or a web site we write semantic elements in the form of HTML.

Use of Semantic HTML

The correct use of semantic html is to reinforce the meaning of the content on a web page. It describes its meaning to both the browser and the developer. I call it the relation between a person (web developer) to its browser. Therefore Semantic elements in html is nothing but just an element with a meaning and is the most useful elements of Html5 to make our code easy and readable to our browser.

Semantic elements in HTML5 matters because it allows you to provide more context with less code.

Lets see the main 5 Semantic Elements :

semantic elements.png

Elements such as < header > , < footer > and < article > etc. are considered semantic because they accurately describe the purpose of the elements and the type of content that is inside them. htmllayout.jpg

By looking at the image above you might be thinking the difference between < section > and < article >. In my starting days working with HTML5 I used to wonder when to use the < section > and when to use < article >.

So these elements are used for sectioning a content also they can be used interchangeably, It all depends on the matter in which situation you are using.

Let say

  • < section > elements contains content, which have related content.

  • < article > element is more specific than a < section > , although it is related to < section > but is distinctly different. It represent a self-contained composition in a web page. also there is no rule about section and article

sectionarticle.png source code : pluralsight.com/guides/semantic-html

These elements act more or less like a < div >...</ div > elements. As we all know < div > tag defines a division in a HTML Document, they group other elements together into page section. However, the < div > tag is the most usable tag in the web development because it helps the data to stand out in the web page and is mainly used to group the content for targeting with the help of CSS(Cascading Style Sheet). using div tag eg:-

usingdiv.png

哆哆女性网闫男孩起名三个字女孩起名小名洋气一点的鼠年宝宝起小名大全急忙的反义词孩子起名在哪李姓起名拼音八字缺土怎么起名大全宋词起名的女孩子安思琳起名字怎样算生辰八字起名用沐字给女孩起名字大魔头全文阅读心有灵犀游戏规则c语言软件classicshell起重机销量排名拼搏论坛www.147zzz.comqq空间主人寄语代码宝宝起明星的名字兆辉煌原型抓包软件八字缺金该起什么名字银川起名哪里好大毛拉5173游戏交易平台官方沪渝高速公路地图蓄电池商标起名文艺大明星迷上我淀粉肠小王子日销售额涨超10倍罗斯否认插足凯特王妃婚姻不负春光新的一天从800个哈欠开始有个姐真把千机伞做出来了国产伟哥去年销售近13亿充个话费竟沦为间接洗钱工具重庆警方辟谣“男子杀人焚尸”男子给前妻转账 现任妻子起诉要回春分繁花正当时呼北高速交通事故已致14人死亡杨洋拄拐现身医院月嫂回应掌掴婴儿是在赶虫子男孩疑遭霸凌 家长讨说法被踢出群因自嘲式简历走红的教授更新简介网友建议重庆地铁不准乘客携带菜筐清明节放假3天调休1天郑州一火锅店爆改成麻辣烫店19岁小伙救下5人后溺亡 多方发声两大学生合买彩票中奖一人不认账张家界的山上“长”满了韩国人?单亲妈妈陷入热恋 14岁儿子报警#春分立蛋大挑战#青海通报栏杆断裂小学生跌落住进ICU代拍被何赛飞拿着魔杖追着打315晚会后胖东来又人满为患了当地回应沈阳致3死车祸车主疑毒驾武汉大学樱花即将进入盛花期张立群任西安交通大学校长为江西彩礼“减负”的“试婚人”网友洛杉矶偶遇贾玲倪萍分享减重40斤方法男孩8年未见母亲被告知被遗忘小米汽车超级工厂正式揭幕周杰伦一审败诉网易特朗普谈“凯特王妃P图照”考生莫言也上北大硕士复试名单了妈妈回应孩子在校撞护栏坠楼恒大被罚41.75亿到底怎么缴男子持台球杆殴打2名女店员被抓校方回应护栏损坏小学生课间坠楼外国人感慨凌晨的中国很安全火箭最近9战8胜1负王树国3次鞠躬告别西交大师生房客欠租失踪 房东直发愁萧美琴窜访捷克 外交部回应山西省委原副书记商黎光被逮捕阿根廷将发行1万与2万面值的纸币英国王室又一合照被质疑P图男子被猫抓伤后确诊“猫抓病”

哆哆女性网 XML地图 TXT地图 虚拟主机 SEO 网站制作 网站优化