In a previous blog, we discuss HMTL Tags and Tage definition.
Now we try to Understand HTML deeply, Before the start of HMTL code, HTML stands for Hypertext Markup Language, and it is the most widely used language to write Web Pages. you need any text editor and browser, a Text editor used for writing code, and a browser used for view output.
HTML Page Structure
Name the file "index.html" and set the encoding to UTF-8 (which is the preferred encoding for HTML files). All HTML documents must start with a document type declaration:
<!DOCTYPE html>
. The HTML document itself begins with <html>
and ends with </html>
. The visible part of the HTML document is between <body>
and </body>
. HTML headings are defined with the <h1>
to <h6>
tags. <h1>
defines the most important heading. <h6>
defines the least important heading,HTML paragraphs are defined with the <p>
tag,HTML links are defined with the <a>
tag.Basic HTML Document
In its simplest form, the following is an example of an HTML document:
following output:
No comments:
Post a Comment