Beginner HTML Tutorial – Learn how to create HTML web pages.
Learn the basics of HTML language: paragraph, headings, attributes, tables, lists, forms, colors.
The HTML document starts with <html> and ends with </html>.
The visible part of the HTML document is between <body> and </body>.
The main sections of HTML tutorial are:
HTML Basic Tags
HTML (Hypertext Markup Language) basic tags form the foundation of every web page. They include the opening and closing tags, which enclose the content, and define the type and structure of elements within the page.
HTML provides various formatting tags to style and structure text. These include tags like <b> for bold, <i> for italic, <u> for underline, <s> for strikethrough, <sup> for superscript, <sub> for subscript, and more.
The <p> tag is used to create paragraphs in HTML. It signifies a block of text that should be displayed as a separate paragraph with proper spacing between them.
HTML offers six levels of headings, ranging from <h1> to <h6>. These tags are used to define the hierarchy of headings on a webpage, with <h1> being the highest level and <h6> being the lowest.
HTML enables the creation of hyperlinks using the <a> tag. It allows you to define a clickable link to other web pages, documents, or specific sections within the same page.
HTML provides the <table> tag to create structured data in the form of rows and columns. Tables are useful for presenting tabular information, such as data sets, pricing lists, and more.
HTML supports both ordered and unordered lists. <ul> is used for unordered lists, creating bullet points, while <ol> is used for ordered lists, displaying items with numbers or letters.
The <img> tag is used to insert images into an HTML page. It requires the src attribute to specify the image source (URL or file path) and provides optional attributes like alt for alternative text and width/height for size adjustments.
HTML allows the specification of colors using the color attribute for text and bgcolor attribute for backgrounds. These attributes can take color names, hexadecimal codes, or RGB values.
HTML forms facilitate user input, such as text fields, checkboxes, radio buttons, and submit buttons. The <form> tag wraps these input elements and provides functionality for sending the data to a server for processing.
The <iframe> tag is used to embed external content within an HTML page. It creates a window that displays another webpage or media content, such as videos or maps, from a different source.
HTML comments are used to add notes or explanations within the code that are not displayed on the webpage. They are enclosed between <!– and –> and help developers document their code or temporarily disable specific sections without deleting them.