answersLogoWhite

0

SPAN STYLE in HTML is used to carry a certain style over blocks of code. This tag can get a little bit complicated for some people. The example I am showing is a very basic example on how to make this happen. For more detailed and more complex ways to use this tag please search the internet for "HTML Span Tutorial"...

Smasher is <span style="color:green">teaching me</span> how to use<span style="color:red"> HTML tags</span> today.

This would display Smasher is in the default color. Then it opens the span style so the next part will be in green. The tag is then closed so the word how to use would be in the default color. Then we open another span style so the next words will be in red. Now that tag is closed so today would be in the default color.

Again this is a very simple example. This tag usually "Spans" over multiple blocks of code.

User Avatar

Wiki User

13y ago

What else can I help you with?

Continue Learning about Engineering

What is the A HTML tag called?

The HTML tag is called the "anchor" tag.


What HTML tag is used to mark the top of the page?

The first tag you use when developing an HTML document is the tag. The first tag you use for the main content of your page is the tag. is the tag that marks the top of an HTML page. The minimum required first like is , which starts the definition of the page content.


What HTML tag is used to indent the first line of text?

There is no tag to do this, but you can wrap a span tag around the first word and use CSS to add padding or you can simply add several '&amp;nbsp;' before the first word.


How change color of all letters of a word with css?

Assuming you are trying to change the color of the first letters of a word in an HTML file, there's no actual command, term, attribute, or value to identify the first letter of a word - However, there is still a way to color specific letters using CSS + HTML. Wrap a &lt;span&gt; tag around the letter, in this case the first letter of a word. Give the &lt;span&gt; tag a class name. In your CSS source, give the specific span a color attribute, and the value desired. Example: &lt;html&gt; &lt;head&gt; &lt;style type='text/css'&gt; span.one { color: #CCCCCC; } &lt;/style&gt; &lt;/head&gt; &lt;body&gt; &lt;span class="one"&gt;H&lt;/span&gt;ello, world! &lt;/body&gt; &lt;/html&gt;


What is the first tag in every HTML document?

The HTML document begins,and ends with the tag . The element defines the whole HTML document. The element has a start tag and an end tag The Start element Tags within the HTML tags begins the content to be displayed for the web page (end body tag) The basic Tags needed to start an HTML document (and must be ended) look like this: This is where the content goes

Related Questions

How would you define span in HTML?

Span is one of the tag of HTML. It alters the style of written text in the web page.


Where do you write javascript?

JavaScript is written in an HTML document. You start it with this tag:and end it with:


What is the A HTML tag called?

The HTML tag is called the "anchor" tag.


Which type of style sheet is placed directly on the HTML tag?

an inline style sheet is directly placed inside of an HTML document using the &lt;style&gt;&lt;/style&gt; tags, but CSS styles can be placed on almost any HTML tag. To specify an HTML tag in your selector, just write out the tag without a leading qualifier (. for class, # for id) so you would have something like span{ //css rules here }


How do you bold text in HTML?

In XHTML, you can use the &lt;strong&gt; tag, which by default makes it bold in all major browsers. You can also use any other tag you feel like styling for boldness, such as &lt;span class="bold"&gt; &lt;strong&gt;Bold Text&lt;/strong&gt; Or &lt;span class="bold"&gt;Bold Text&lt;/span&gt; With the CSS rule strong, span.bold {font-weight:bold;} In HTML 4 and HTML5, you have the &lt;b&gt; tag, which makes things bold by default. In HTML 4, this is by definition. In HTML 5, you still want to include the CSS, as the &lt;b&gt; tag is NOT bold by definition &lt;b&gt;Bold Text&lt;/b&gt; CSS rule: b {font-weight:bold;} The &lt;strong&gt; tag will also work in HTML5.


How can you add images into a css class and display it using span tag?

You would give the CSS class a background of that image, then assign it using a class attribute in your span tag. For example, your class's name will be class1, and your image will be named 'myimage.jpg'. CSS: .class1{ background-image:url('myimage.jpg'); } Then, for your HTML span tag: &lt;span class="class1"&gt; Add a lot of '&amp;nbsp;' here until you can see your image. &lt;/span&gt;


What HTML tag is used to mark the top of the page?

The first tag you use when developing an HTML document is the tag. The first tag you use for the main content of your page is the tag. is the tag that marks the top of an HTML page. The minimum required first like is , which starts the definition of the page content.


What HTML tag is used to indent the first line of text?

There is no tag to do this, but you can wrap a span tag around the first word and use CSS to add padding or you can simply add several '&amp;nbsp;' before the first word.


What is used to meta tag in HTML?

html


The tag that appears after the HTML tag is?

&lt;head&gt;


How change color of all letters of a word with css?

Assuming you are trying to change the color of the first letters of a word in an HTML file, there's no actual command, term, attribute, or value to identify the first letter of a word - However, there is still a way to color specific letters using CSS + HTML. Wrap a &lt;span&gt; tag around the letter, in this case the first letter of a word. Give the &lt;span&gt; tag a class name. In your CSS source, give the specific span a color attribute, and the value desired. Example: &lt;html&gt; &lt;head&gt; &lt;style type='text/css'&gt; span.one { color: #CCCCCC; } &lt;/style&gt; &lt;/head&gt; &lt;body&gt; &lt;span class="one"&gt;H&lt;/span&gt;ello, world! &lt;/body&gt; &lt;/html&gt;


What is the first tag in every HTML document?

The HTML document begins,and ends with the tag . The element defines the whole HTML document. The element has a start tag and an end tag The Start element Tags within the HTML tags begins the content to be displayed for the web page (end body tag) The basic Tags needed to start an HTML document (and must be ended) look like this: This is where the content goes