Belajar HTML Dasar: Menandai Teks Penting dengan Tag mark

Kelas Komputer Online
14 Sept 202205:57

Summary

TLDRIn this tutorial video, the presenter explains how to use the `<mark>` tag in HTML to highlight important text or search results. They demonstrate how to wrap text, such as 'Lorem Ipsum' or 'web hosting', with the `<mark>` tag to make it stand out with a yellow background. The tutorial provides clear step-by-step instructions on creating an HTML file, using a basic structure, and testing the results in a browser. The video serves as a beginner-friendly guide for those learning HTML and shows the practical use of the `<mark>` tag to enhance content visibility.

Takeaways

  • 😀 The video explains the usage of the HTML <mark> tag to highlight important text or search results.
  • 😀 A new HTML file should be created for practice, with the .html extension.
  • 😀 The basic HTML structure should include <!DOCTYPE html>, <html>, <head>, and <body> tags.
  • 😀 Paragraphs are created using the <p> tag, which can be filled with sample text like 'lorem ipsum'.
  • 😀 Words or phrases to be highlighted should be wrapped with the <mark> tag.
  • 😀 Text wrapped in the <mark> tag will automatically have a yellow background in modern browsers.
  • 😀 The <mark> tag can be used to emphasize search results within content, making them easier to locate.
  • 😀 The tutorial demonstrates live editing and refreshing the browser to see changes in real time.
  • 😀 Users can highlight any text in a paragraph, and multiple <mark> tags can be used in the same document.
  • 😀 The <mark> tag is a simple yet effective tool for improving readability and emphasizing important information in HTML content.

Q & A

  • What is the main topic discussed in the video?

    -The video discusses the use of the HTML <mark> tag, which is used to highlight important text or search results.

  • What is the purpose of the <mark> tag in HTML?

    -The <mark> tag is used to highlight text, making it stand out with a yellow background. It's often used to emphasize important words or search results.

  • How do you create an HTML file for this lesson?

    -To create an HTML file, you need to save it with a '.html' extension, such as '5.4.html'. This file extension indicates it is an HTML document.

  • What is the basic structure of an HTML document shown in the video?

    -The basic structure of an HTML document includes the <html> tag, followed by the <head> and <body> sections. In the video, the <body> tag contains the content where the <mark> tag is applied.

  • How do you apply the <mark> tag to text in an HTML document?

    -To apply the <mark> tag, wrap the text you want to highlight with <mark> and </mark> tags. For example, <mark>lorem ipsum</mark> will highlight the phrase 'lorem ipsum' in yellow.

  • What happens when the <mark> tag is used on text in a webpage?

    -When the <mark> tag is used, the text between the opening and closing <mark> tags will be highlighted with a yellow background, helping to emphasize that specific text.

  • How does the video suggest using the <mark> tag with search results?

    -The video demonstrates using the <mark> tag to highlight a specific word from search results. For example, wrapping the text 'web hosting' with <mark> tags highlights the term in search results.

  • What are the browser steps shown in the video to view the HTML document?

    -The video shows how to open the HTML file in a browser by right-clicking the file and selecting 'Open'. It also demonstrates using Windows keyboard shortcuts to split the screen between the browser and text editor for easier viewing.

  • What other HTML content is created in the video besides the <mark> tag?

    -In addition to demonstrating the <mark> tag, the video also shows how to create a basic HTML document structure and add a paragraph of text using the <p> tag.

  • What is the significance of the <mark> tag's yellow background?

    -The yellow background created by the <mark> tag is a visual cue to draw attention to specific words or phrases, typically for highlighting important text or search results.

Outlines

plate

This section is available to paid users only. Please upgrade to access this part.

Upgrade Now

Mindmap

plate

This section is available to paid users only. Please upgrade to access this part.

Upgrade Now

Keywords

plate

This section is available to paid users only. Please upgrade to access this part.

Upgrade Now

Highlights

plate

This section is available to paid users only. Please upgrade to access this part.

Upgrade Now

Transcripts

plate

This section is available to paid users only. Please upgrade to access this part.

Upgrade Now