We will begin our journey from the ba"sics" to the sick mode!
PATHWAY TOWARDS HTML & HTML5
THE BASICS OF HTML-
HTML, or HyperText Markup Language, is a markup language used to describe the structure of a web page. It uses a special syntax or notation to organize and give information about the page to the browser. Elements usually have opening and closing tags that surround and give meaning to content. For example, there are different tag options to place around the text to show whether it is a heading, a paragraph, or a list.
HTML is structured where we use and are highly dependent on "tags". HTML code that defines every structure on an HTML page, including the placement of text and images and hypertext links. HTML tags are defined using less than and greater than symbols. (<), (>). For eg- <h1> ... </h1> wherein the "h1" represents the main heading. If you closely notice you will see that there is a "/" which is used to end the tag which we have started that is h1 in this case.
Now, we will move on to an example that shows how tags are implemented and how they function with different attributes. In this case, we wanted to print the main heading for our website which says "hello, my name is vedanshu". We have used the h1 element which is used to put the main heading. <h1> is used as an open tag and the heading is written after which the tag is closed with </h1>. Below is the compiled example. Just like h1, we have h2 which is used as a subheading for our content
PARAGRAPH ELEMENTS-
We open tag and the heading is written after which the tag is closed with </h1>. Below is the compiled example. Just like h1, we have h2 which is used as a subheading for our content have heading elements and then we have a paragraph element which is used to define a paragraph for our content. Usually, the paragraph element is used to define the title (Heading or subHeading).
Below is the example where we want to define a heading along with a subheading and some details about it.
In this case "hello, my name is vedanshu" is the Main Heading, "Welcome to innovationsfy" is the SubHeading and lastly, the details mentioned come under the Paragraph Element which is defined as - <p>....</p>.
COMMENT & UNCOMMENT-
In everyday life, we comment on some topic to let people know about our opinion or our say towards that topic. Just like that in HTML, we use comments to let other programmers know about the detail of any part within the code. (<!-- ) is used to open and (-->)to close the tag for comment. Below is an example.
0 Comments