{"id":54,"date":"2022-03-19T09:18:55","date_gmt":"2022-03-19T09:18:55","guid":{"rendered":"https:\/\/staging.brightwhiz.com\/?post_type=topic&p=54"},"modified":"2022-03-19T09:28:39","modified_gmt":"2022-03-19T09:28:39","slug":"html-basics","status":"publish","type":"topic","link":"http:\/\/local.tutorials\/topic\/html-basics\/","title":{"rendered":"HTML – Basics"},"content":{"rendered":"\n
The HTML Document forms the basis of what a web page is. All HTML documents must start with a document type declaration: The The document type declaration below is what you should use as this is the declaration for HTML5, the modern HTML version.<\/p>\n\n\n\n The HTML document itself is a root element marked by a starting tag that begins the element with The root element of the non-visible part of the HTML document is The visible part of the HTML document is the content that appears between Example of an HTML document.<\/p>\n\n\n\n The HTML title is defined using the opening HTML headings are defined with the HTML paragraphs are defined with the <p> tag. An HTML document can have zero or more HTML links are defined with the Note: Attributes are used to provide additional information about HTML elements. We will be looking at attributes later in this tutorial series.<\/p><\/blockquote>\n\n\n\n HTML Images<\/p>\n\n\n\n HTML images are defined with the The HTML Document forms the basis of what a web page is. All HTML documents must start with a document type declaration: <!DOCTYPE>. This tells the browser what version of HTML is expected within the document in order for the browser to render the page correctly. The <!DOCTYPE> declaration must appear only once, at the […]<\/p>\n","protected":false},"featured_media":43,"comment_status":"open","ping_status":"closed","template":"","meta":[],"categories":[2],"tags":[],"subject":[7,8],"yoast_head":"\n<!DOCTYPE><\/code>. This tells the browser what version of HTML is expected within the document in order for the browser to render the page correctly.<\/p>\n\n\n\n
<!DOCTYPE><\/code> declaration must appear only once, at the top of the page before any HTML tags, and is not case sensitive.<\/p>\n\n\n\n
<!DOCTYPE html><\/code><\/pre>\n\n\n\n
<html><\/code> and an ending tag that ends the element with
<\/html><\/code>. There must only be one element in an HTML document.<\/p>\n\n\n\n
<head><\/code> and
<\/head><\/code>. Meta-related elements are typically placed within the
<head><\/code> element.<\/p>\n\n\n\n
<body><\/code> and
<\/body><\/code>. It can include other elements, tags, and plain text.<\/p>\n\n\n\n
<!DOCTYPE html>\n<html>\n <head>\n <title>This is document title<\/title>\n <\/head>\t\n <body>\n <h1>A Simple heading<\/h1>\n <p>Hello World paragraph!<\/p>\n <\/body>\t\n<\/html><\/code><\/pre>\n\n\n\n
HTML Title<\/h2>\n\n\n\n
<title><\/code> and closing
<\/title><\/code> tags. The content (typically plain text) is placed in between these two tags to complete the element. The content represents the title of the HTML document and appears in the Title bar or Tab of the HTML document. It is also the text that is used in search engine results. There must only be one element in an HTML document.<\/p>\n\n\n\n
<title>This is the web page title<\/title><\/code><\/pre>\n\n\n\n
HTML Headings<\/h2>\n\n\n\n
<h1><\/code> to
<h6><\/code> tags.<\/p>\n\n\n\n
<h1><\/code> tag defines the most important heading while
<h6><\/code> tag defines the least important heading. An HTML document can have as many of these tags as needed.<\/p>\n\n\n\n
<h1>This is heading 1<\/h1>\n<h2>This is heading 2<\/h2>\n<h3>This is heading 3<\/h3>\n<h4>This is heading 4<\/h4>\n<h5>This is heading 5<\/h5>\n<h6>This is heading 6<\/h6><\/code><\/pre>\n\n\n\n
HTML Paragraphs<\/h2>\n\n\n\n
<p><\/code> tags.<\/p>\n\n\n\n
<p>This is a paragraph.<\/p>\n<p>This is another paragraph.<\/p><\/code><\/pre>\n\n\n\n
HTML Links<\/h2>\n\n\n\n
<a><\/code> tag: The tag also requires the
href<\/code> attribute to specify the destination of the link as shown in the example below.<\/p>\n\n\n\n
<a href="https:\/\/brightwhiz.com">This is a link<\/a><\/code><\/pre>\n\n\n\n
<img><\/code> tag. This tag requires the src attributes to work as expected. Our example uses the following attributes:<\/p>\n\n\n\n
<img src="brightwhiz.jpg" alt="brightwhiz.com" width="320" height="270"><\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"