HTML Basics: Creating an HTML Document

StableSeal avatar
StableSeal
·
·
Download

Start Quiz

Study Flashcards

18 Questions

Which tag is considered an 'empty element' and can go by itself anywhere in the body of an HTML text?


What is the function of the tag in an HTML document?

Tells browsers that the page has HTML code

Which tag is used for the header of an HTML page and is an encrypted code not visible to visitors?

What should be the last element of an HTML document according to the language's syntax?

What does the tag do in HTML?

Gives the site a name visible in browser tabs

Why is it essential to have an HTML document as you create websites?

To have all basic HTML codes organized in one place

What does HTML stand for?

Hypertext Markup Language

Which of the following is NOT a part of the basic elements of HTML syntax?

Forms

What is the purpose of a closing tag in HTML?

To tell the browser how far the behavior should extend

Which symbol precedes the closing tag in HTML?

/

What happens if you do not include a closing tag in HTML?

The content will be displayed with default formatting

What is the function of HTML tags in web development?

To create and format websites using a universal language

What type of content can be inserted within the tag in HTML?

Text, images, videos, and other functionality

Which HTML tags can be used to format titles and subheadings?

and

When should the tag be used within the content of a web page?

Only once for each web page

Which tags help to organize text into paragraphs and line breaks in HTML?

and

What does the tag allow you to add to the body of a web page?

Photos and graphic images

Which tag contains all the individual elements of an HTML site?

Study Notes

HTML Basics

  • Not all HTML tags require a "closure" (e.g., the tag for inserting line breaks is an "empty element").
  • It's a good idea to create an HTML document to organize basic HTML codes for each web page.

Essential HTML Tags

  • There are 10 essential HTML tags for a well-built HTML document.
  • The first tag in an HTML document must be the `` tag, which tells browsers that the page has HTML code.
  • The `` tag is placed at the beginning of the document and has a corresponding closing tag at the end.

Header and Page Title

  • The `` tag is used for the header of the page, containing information about the site that is not visible to users.
  • The `` tag gives a site a name, which users see in their browser tabs.

HTML Syntax

  • HTML codes are the universal language used to create and format websites, working on any operating system and with any browser.
  • HTML tags are made up of a system of serial labels or tags, which include instructions that browsers translate.
  • HTML tags appear between hyphens (< >) and consist of a start tag and a closing tag.

Tag Functionality

  • The start tag defines the behavior of the content (e.g., bold text).
  • The closing tag tells the browser how far this behavior should extend.
  • To create a closing tag, add a slash (/) to the beginning of the tag.

Body Tag

  • The `` tag contains all individual elements of the site, including visible content such as text, photos, videos, and other functionality.

Adding Content

  • With the `` tag, you can insert content, including text, photos, videos, and other functionality.

Titles and Subtitles

  • The , , , , , and tags format titles and subheadings, helping to prioritize information for the reader.
  • It's recommended to use the `` tag only once within the content for each web page.

Paragraphs and Line Breaks

  • The <p> tag helps organize text into paragraphs and line breaks.

Images

  • The `` tag adds photos and graphic images to the body of a web page.

Learn about the importance of creating an HTML document for organizing basic HTML codes that will be used on each page of a website. Understand that not all tags need a 'closure' and that some elements like line breaks are considered 'empty elements'. Discover how to create an HTML document using a text editor like Microsoft Word or MS Notepad.

Make Your Own Quizzes and Flashcards

Convert your notes into interactive study material.

Get started for free

More Quizzes Like This

HTML Basics Quiz
25 questions

HTML Basics Quiz

ProblemFreeQuail avatar
ProblemFreeQuail
Web Design with HTML Basics
7 questions
HTML Basics Quiz
9 questions

HTML Basics Quiz

ThumbsUpHouston avatar
ThumbsUpHouston
Use Quizgecko on...
Browser
Browser