What are tags in html? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

What are tags in html?

I am a beginner want to learn html but don't know tags

23rd Jul 2017, 1:58 PM
Friday
Friday - avatar
5 ответов
+ 4
<body> and <head> and <img> and <p> and <div> and <code> and <script> and <style> and <br> and all those other thingies with <>
23rd Jul 2017, 2:04 PM
The Coding Sloth
The Coding Sloth - avatar
+ 2
tags are keywords that browser use to "understand" what, how, and where to show the content of your webpage or web app. You can define the way your content display on screen and even behavior of some elements when you press some key or move your mouse around (just two examples). All that stuff happens inside your tags. You don't see any tag in your screen but they define the way it looks and behaves. The basic syntax is: <keyword>this stuff is visible in screen</keyword> or </keyword> While the first is for a content tag syntax, and can have one or more "child elements" nested, the second is called "void tag" and don't require the last tag and can't have child elements . Common basic closed tags: html - head - body - title - h1 to h6 - p - div - ol - ul - li - svg - script - style, etc. Common basic void tags: br - img - input - link - meta
23rd Jul 2017, 2:18 PM
Carlos Xhan
Carlos Xhan - avatar
0
tags are keywords that always end with a closing one
23rd Jul 2017, 2:34 PM
Gabrielle Cristine
Gabrielle Cristine - avatar
0
@Gabrielle they do not aways require a closing tag e.g <script src="file.js"> or <br /> which is self closing.
23rd Jul 2017, 3:30 PM
josh mizzi
josh mizzi - avatar
0
A tag is a keyword that often represents an element in a webpage or can inform the browser of important information like <style>, <script>or <body> which mark the presents of css and Javascript or the start of the page UI.
23rd Jul 2017, 3:36 PM
josh mizzi
josh mizzi - avatar