Skip to main content

HTML Basics

 Here we will see some HTML examples, Forget about the tags you have not learned yet.

HTML Document:

All HTML documents start with a document-type declarations : <!DOCTYPE html>

A HTML document itself begins with <html> and close with </html>

The visible part of the web page will be <body> and </body>


The <!DOCTYPE> Declaration:

  1. The <!DOCTYPE> declaration represents the document type and helps browsers display web pages correctly.
  2. It must only appear once, at the top of the page (before any HTML tags).
  3. The <!DOCTYPE> declaration is not case sensitive.

HTML Headings:

HTML headings are defined with the <h1> to <h6> tags.

<h1> defines the most important heading. <h6> defines the least important heading.

HTML Paragraphs:

HTML paragraphs are defined with the <p> tag

HTML Links:

HTML links are defined with the <a> tag. The link's destination is specified in the href attribute. . Attributes are used to provide additional information about HTML elements.

HTML Images

HTML images are defined with the <img> tag.
The source file (src), alternative text (alt), width, and height are provided as attributes:



Comments

Popular posts from this blog

When there is.... It matters!

When there is no wind... It matters to see a tree dance! When there is no way home... It matters to keep a thin memory! When there is no light... It matters to keep a lighter! When there is no sweetheart... It matters by surrounded with friends! When there is no sweet memory to remember... It matters to create them by own! When there is no achievement... It matters to grab an opportunity! When there is no plan... It matters to hit hard the goal! When there is a heart... It matters to keep it unbroken! When there is  no knowledge... It matters to get rich! When there is no path... It matters to keep thoughts clear! When there is   no hope... It matters to keep motivated! When there is no life... It matters to remember YOU ARE THE LIFE

VSCode for web developers.

Visual Studio Code:  Visual Studio Code is a freeware source-code editor made by Microsoft for Windows, Linux, and macOS. Features include support for debugging, syntax highlighting, intelligent code completion, snippets, code refactoring, and embedded Git. Download VSCode: We can download VSCode by this  download link.  Select an installer based on your operating system and install it. Creating a new HTML file: Open VSCode Click ctrl+b (It will open the file explorer on the left side.) Choose your folder or in the root of your folder Click the new file in the top right corner of the explorer gives a name with the extension (Ex: inde.html). Write some HTML code. Click ctrl+s to save the file. Now browse the file in any of your favorite browsers to see your web page.

What is HTML?

 Hi, buddies! I hope you checked my video about What is HTML? and you are here to get the reading part and the reference area. If not, here is the link to my video for you. Let's get into the content. What is HTML?     HTML is the standard markup language for creating Web pages. HTML is a short form of H yper T ext M arkup L anguage. It describes the structure of a web page. It consists of a series of an element. HTML elements tell the browser how to display the content and finally it is pieces of content like this is a heading, this is a paragraph and etc... Example explanation: The <!DOCTYPE html> declaration defines that this document is an HTML5 document The <html> element is the root element of an HTML page The <head> element contains meta information about the HTML page The <meta> tag defines metadata about an HTML document. Metadata is data (information) about data. The <title> element specifies a title for the HTML page (which is sho...