Site icon Tutorial

HTML

Go back to tutorial

Learning HTML Basics

As you may know, web is a collection of documents that all link together, with strong similarity to the printed documents. Often the web pages are written in HTML (Hypertext Markup Language) or XHTML (eXtensible Hypertext Markup Language), such that both are document-layout and hyperlink-specification language. They define how to display the contents of the document, including text, images, and other support media. The function of HTML is primarily to add structural and semantic information to the raw text of a document.

HTML Elements, Tags and Attributes

HTML is an embedded language, such that the language’s directions or tags are inserted into the HTML document that browser loads for viewing. Web browser uses the information inside the HTML tags to decide how to display or otherwise treat the subsequent contents of an HTML document. HTML documents are composed of a tree of HTML elements, such that each element can have attributes specified. In the HTML syntax, most elements are written with a start tag and an end tag, with the content in between like

<p>In the HTML syntax, most elements are written …</p>

However, not all of these elements require the end tag, or even the start tag, to be present like the br element.

Types of Tags

Majorly used HTML tags 

Root Element html
Metadata head, title, base, link, meta, style
Sections body, article, section, nav, aside, h1, -, h6, header, footer, address
Grouping p, pre, blockquote, ol, ul, li, dl, dt, dd, figure, figcaption, div, main, hr
Text a, em, strong, cite, q, dfn, abbr, data, time, code, var, samp, kbd, mark, ruby, rb, rt, rp, rtc, bdi, bdo, span, br, wbr, small, i, b, u, s, sub, sup,
Edits ins, del
Embedded Content img, embed, object, param, video, audio, source, track, map, area, iframe
Tables table, tr, td, th, caption, tbody, thead, tfoot, colgroup, col
Forms form, input, textarea, select, option, optgroup, datalist, label, fieldset, legend, button, output, progress, meter, keygen
Scripting script, noscript, template, canvas

Boost your chances for better job opportunities. Practice and Prepare for Mobile Testing (Appium) Exam Now!

Go back to tutorial

Exit mobile version