0
What are tags in html?
I am a beginner want to learn html but don't know tags
5 Respostas
+ 4
<body> and <head> and <img> and <p> and <div> and <code> and <script> and <style> and <br> and all those other thingies with <>
+ 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
0
tags are keywords that always end with a closing one
0
@Gabrielle they do not aways require a closing tag e.g <script src="file.js"> or <br /> which is self closing.
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.